ssl-redirect

0.2.0 • Public • Published

SSL Redirect

NPM version Build status Test coverage Dependency Status License Downloads

Tiny server that redirects HTTP requests to SSL. These is currently really rough and you probably shouldn't use it.

API

var server = require('ssl-redirect')(options)

An http.Server is returned and automatically starts.

Options are:

  • port - the port to listen to. Should be different than your actual SSL app.
  • host: localhost - host to redirect to
  • maxAge: 16070400 - max age for Strict-Transport-Security
  • includeSubDomains: true - for Strict-Transport-Security

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    23
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    23
  • 0.1.0
    3

Package Sidebar

Install

npm i ssl-redirect

Weekly Downloads

15

Version

0.2.0

License

MIT

Last publish

Collaborators

  • dougwilson
  • jongleberry