mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
Edited to simplify install
Removed the two steps and made it default to 0.0.0.0, edited the webserver.js to reflect the changes.
This commit is contained in:
@@ -41,14 +41,8 @@ var async = require('async'),
|
|||||||
name: 'redis:password',
|
name: 'redis:password',
|
||||||
description: 'Password of your Redis database'
|
description: 'Password of your Redis database'
|
||||||
}, {
|
}, {
|
||||||
name: 'use_ip',
|
name: 'bind_address',
|
||||||
description: 'Do you want to bind to an IP or hostname?',
|
description: 'IP or Hostname to bind to',
|
||||||
'default': 'n',
|
|
||||||
pattern: /y[es]*|n[o]?/,
|
|
||||||
message: 'Please enter \'yes\' or \'no\'',
|
|
||||||
}, {
|
|
||||||
name: 'hostname_ip',
|
|
||||||
decription: 'Hostname or IP to bind to'
|
|
||||||
'default': '0.0.0.0'
|
'default': '0.0.0.0'
|
||||||
}],
|
}],
|
||||||
setup: function (callback) {
|
setup: function (callback) {
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ var express = require('express'),
|
|||||||
templates['logout'] = parsedTemplate;
|
templates['logout'] = parsedTemplate;
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen(nconf.get('PORT') || nconf.get('port'), nconf.get('use_ip') ? nconf.get('hostname_set') : '0.0.0.0');
|
server.listen(nconf.get('PORT') || nconf.get('port'), nconf.get('bind_address'));
|
||||||
}
|
}
|
||||||
|
|
||||||
auth.initialize(app);
|
auth.initialize(app);
|
||||||
|
|||||||
Reference in New Issue
Block a user