Added webHost and localDatabase as an option.

This commit is contained in:
Bram van der Veen 2015-10-06 08:27:32 +02:00
parent a01a848f4b
commit c79e2ff0ac
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ module.exports = function () {
var settings = {
'env' : 'dev',
'database' : 'example.com/database',
"localDatabase" : true,
"webHost" : '0.0.0.0',
'webPort' : 1024,
'torHost' : 'example.com',
'torPort' : 9050,

2
web.js
View file

@ -78,7 +78,7 @@ app.get('/api/:api', function (req, res, next) { next(); });
app.param('api', api);
//Initialize the server on configured web port.
app.listen(config().webPort);
app.listen(config().webPort, config().webHost);
console.log('Started rooster.io on port', config().webPort)
plugins();