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.
2 parents e767c69 + c0e5c53 commit 260badaCopy full SHA for 260bada
server.js
@@ -5,10 +5,10 @@ var enforce = require('express-sslify');
5
var app = express();
6
7
// use HTTPS(true) in case you are behind a load balancer (e.g. Heroku)
8
-// if (process.env.NODE_ENV === 'production') {
9
-// console.log('redirecting to ssl');
10
-// app.use(enforce.HTTPS({ trustProtoHeader: true }))
11
-// }
+if (process.env.NODE_ENV === 'production') {
+ console.log('redirecting to ssl');
+ app.use(enforce.HTTPS({ trustProtoHeader: true }))
+}
12
13
app.use('/', express.static(__dirname));
14
0 commit comments