More https configuration

This commit is contained in:
terakilobyte
2015-06-16 14:43:12 -04:00
parent 0a8356e50f
commit 7e420217eb

View File

@ -305,6 +305,7 @@ var options = {
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
app.start = function() { app.start = function() {
var server = https.createServer(options, app); var server = https.createServer(options, app);
console.log(process.env.HOST, process.env.PORT);
server.listen('https://' + process.env.HOST + ':' + app.get('port'), function () { server.listen('https://' + process.env.HOST + ':' + app.get('port'), function () {
console.log( console.log(
'FreeCodeCamp server listening on port %d in %s mode', 'FreeCodeCamp server listening on port %d in %s mode',