Support 'host' & 'path' config options

Signed-off-by: Miranda Kastemaa <miranda@foldplop.com>
This commit is contained in:
Miranda Kastemaa 2018-07-23 03:27:51 +03:00
parent 23bd1a18bb
commit 70e8df5c04
4 changed files with 20 additions and 3 deletions

View file

@ -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: {