proxy-https-redirect
v1.0.2
Published
proxy-https-redirect ===================
Downloads
4
Readme
proxy-https-redirect
Middleware to upgrade HTTP traffic to HTTPS via a 301 redirect. Looks at the x-forwarded-proto
header, which is the standard header a proxy sets to identify the inbound client's protocol.
Usage
const express = require( "express" );
express()
.use( require( "proxy-https-redirect" ) )
.use( expres.static( STATIC_DIR ) )
.listen( 8080 );