This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm's 300,000 packages pre-installed, including
ssl-redirect with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Tiny server that redirects HTTP requests to SSL. These is currently really rough and you probably shouldn't use it.
var server = require('ssl-redirect')(options)
http.Server is returned and automatically starts.
host: localhost- host to redirect to
maxAge: 16070400- max age for
includeSubDomains: true- for