We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed6124 commit aa571f5Copy full SHA for aa571f5
server.js
@@ -7,6 +7,7 @@ app.use('/', express.static(__dirname));
7
8
// use HTTPS(true) in case you are behind a load balancer (e.g. Heroku)
9
if (process.env.NODE_ENV === 'production') {
10
+ console.log('redirecting to ssl');
11
app.use(enforce.HTTPS());
12
app.use(enforce.HTTPS({ trustProtoHeader: true }))
13
}
0 commit comments