Add new config item: listen_address

The IP address to bind the HTTP server to
This commit is contained in:
Thomas Dalichow 2017-12-09 02:21:55 +01:00 committed by GitHub
parent d7084829c3
commit 106aef579f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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