diff options
author | Miranda Kastemaa | 2018-07-23 03:27:51 +0300 |
---|---|---|
committer | Miranda Kastemaa | 2018-07-27 15:35:29 +0300 |
commit | 70e8df5c04274ac4ee9d3eb2462fed12a85f6ccd (patch) | |
tree | 8fb5414afe6d4f055e61078c4d239d2bac2c9f9f /lib/config | |
parent | 23bd1a18bb65dc49c55f755b02c9083ecdff1344 (diff) |
Support 'host' & 'path' config options
Signed-off-by: Miranda Kastemaa <miranda@foldplop.com>
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/default.js | 1 | ||||
-rw-r--r-- | lib/config/environment.js | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index 5c39a4da..6096bce4 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -3,6 +3,7 @@ module.exports = { domain: '', urlPath: '', + host: '0.0.0.0', port: 3000, urlAddPort: false, allowOrigin: ['localhost'], diff --git a/lib/config/environment.js b/lib/config/environment.js index d850ac9d..6c4ce92f 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -5,7 +5,9 @@ const {toBooleanConfig, toArrayConfig, toIntegerConfig} = require('./utils') module.exports = { domain: process.env.CMD_DOMAIN, urlPath: process.env.CMD_URL_PATH, + host: process.env.CMD_HOST, port: toIntegerConfig(process.env.CMD_PORT), + path: process.env.CMD_PATH, urlAddPort: toBooleanConfig(process.env.CMD_URL_ADDPORT), useSSL: toBooleanConfig(process.env.CMD_USESSL), hsts: { |