Added webHost and localDatabase as an option.
This commit is contained in:
parent
a01a848f4b
commit
c79e2ff0ac
|
@ -18,6 +18,8 @@ module.exports = function () {
|
||||||
var settings = {
|
var settings = {
|
||||||
'env' : 'dev',
|
'env' : 'dev',
|
||||||
'database' : 'example.com/database',
|
'database' : 'example.com/database',
|
||||||
|
"localDatabase" : true,
|
||||||
|
"webHost" : '0.0.0.0',
|
||||||
'webPort' : 1024,
|
'webPort' : 1024,
|
||||||
'torHost' : 'example.com',
|
'torHost' : 'example.com',
|
||||||
'torPort' : 9050,
|
'torPort' : 9050,
|
||||||
|
|
2
web.js
2
web.js
|
@ -78,7 +78,7 @@ app.get('/api/:api', function (req, res, next) { next(); });
|
||||||
app.param('api', api);
|
app.param('api', api);
|
||||||
|
|
||||||
//Initialize the server on configured web port.
|
//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)
|
console.log('Started rooster.io on port', config().webPort)
|
||||||
plugins();
|
plugins();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue