Skip to content

Commit

Permalink
Merge pull request linnovate#717 from zlokomatic/master
Browse files Browse the repository at this point in the history
Added Https in config
  • Loading branch information
fyockm committed Aug 18, 2014
2 parents 869c92b + fd8a1de commit e0c5017
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion config/env/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ var path = require('path'),

module.exports = {
root: rootPath,
port: process.env.PORT || 3000,
http: {
port: process.env.PORT || 3000
},
https: {
port: false,

// Paths to key and cert as string
ssl: {
key: '',
cert: ''
}
},
hostname: process.env.HOST || process.env.HOSTNAME,
db: process.env.MONGOHQ_URL,
templateEngine: 'swig',
Expand Down
5 changes: 4 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ var mean = require('meanio');

// Creates and serves mean application
mean.serve({ /*options placeholder*/ }, function(app, config) {
console.log('Mean app started on port ' + config.port + ' (' + process.env.NODE_ENV + ')');
console.log('Mean app started on port ' + config.http.port + ' (' + process.env.NODE_ENV + ')');
if(config.https && config.https.port){
console.log('Mean secure app started on port ' + config.https.port + ' (' + process.env.NODE_ENV + ')');
}
});

0 comments on commit e0c5017

Please sign in to comment.