Merge pull request #668 from TwizzyDizzy/master

Add possibility to bind to a specific IP address
This commit is contained in:
Danny Coates 2017-12-21 13:25:02 -08:00 committed by GitHub
commit 1d2b0cb093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,11 @@ const conf = convict({
default: 'localhost',
env: 'REDIS_HOST'
},
listen_address: {
format: 'ipaddress',
default: '0.0.0.0',
env: 'IP_ADDRESS'
},
listen_port: {
format: 'port',
default: 1443,

View File

@ -24,4 +24,4 @@ app.use(
app.use(pages.notfound);
app.listen(config.listen_port);
app.listen(config.listen_port,config.listen_address);