From 70e8df5c04274ac4ee9d3eb2462fed12a85f6ccd Mon Sep 17 00:00:00 2001 From: Miranda Kastemaa Date: Mon, 23 Jul 2018 03:27:51 +0300 Subject: Support 'host' & 'path' config options Signed-off-by: Miranda Kastemaa --- lib/config/default.js | 1 + lib/config/environment.js | 2 ++ 2 files changed, 3 insertions(+) (limited to 'lib') 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: { -- cgit v1.2.3