diff options
author | Christoph (Sheogorath) Kern | 2018-12-01 12:25:02 +0100 |
---|---|---|
committer | GitHub | 2018-12-01 12:25:02 +0100 |
commit | 786140331b4b034e8df32a056fef4d1cb57f1118 (patch) | |
tree | dffee49e84366d09e1c8d25013ec053a925d6fb1 /lib | |
parent | b749d50e207379e927743f1ca72e55868191814b (diff) | |
parent | a4941be3de3b849a6b1e4885b4801f3987125ba0 (diff) |
Merge pull request #1086 from SISheogorath/feature/urlWarning
Warn on missing serverURL
Diffstat (limited to 'lib')
-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 |