diff --git a/server/config.js b/server/config.js index e3e97b2a..4bad58d8 100644 --- a/server/config.js +++ b/server/config.js @@ -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, diff --git a/server/prod.js b/server/prod.js index 2840f9ec..0515faf7 100644 --- a/server/prod.js +++ b/server/prod.js @@ -24,4 +24,4 @@ app.use( app.use(pages.notfound); -app.listen(config.listen_port); +app.listen(config.listen_port,config.listen_address);