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 e767c69 commit c0e5c53Copy full SHA for c0e5c53
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