Merge pull request #668 from TwizzyDizzy/master
Add possibility to bind to a specific IP address
This commit is contained in:
commit
1d2b0cb093
@ -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,
|
||||
|
@ -24,4 +24,4 @@ app.use(
|
||||
|
||||
app.use(pages.notfound);
|
||||
|
||||
app.listen(config.listen_port);
|
||||
app.listen(config.listen_port,config.listen_address);
|
||||
|
Loading…
Reference in New Issue
Block a user