diff options
author | Sheogorath | 2018-11-28 14:38:42 +0100 |
---|---|---|
committer | Sheogorath | 2018-11-28 14:38:49 +0100 |
commit | a4941be3de3b849a6b1e4885b4801f3987125ba0 (patch) | |
tree | a1dc3792629931fc2b540b1f4a69505e92403a85 | |
parent | 769a1c4ccbebfa92d839bc2a6ec2b54017154a0a (diff) |
Warn on missing serverURL
We see some issues that are based on not properly configured
`config.serverURL`.
This patch adds a warning when `config.serverURL` is an empty value.
This should provide users direct feedback about how to improve their
configs.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | lib/config/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/config/index.js b/lib/config/index.js index c1005b0b..b8480966 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -101,6 +101,10 @@ config.serverURL = (function getserverurl () { return url })() +if (config.serverURL === '') { + logger.warn('Neither \'domain\' nor \'CMD_DOMAIN\' is configured. This can cause issues with various components.\nHint: Make sure \'protocolUseSSL\' and \'urlAddPort\' or \'CMD_PROTOCOL_USESSL\' and \'CMD_URL_ADDPORT\' are configured properly.') +} + config.Environment = Environment // auth method |