Merge pull request #1086 from SISheogorath/feature/urlWarning

Warn on missing serverURL
This commit is contained in:
Christoph (Sheogorath) Kern 2018-12-01 12:25:02 +01:00 committed by GitHub
commit 786140331b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,10 @@ config.serverURL = (function getserverurl () {
return url 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 config.Environment = Environment
// auth method // auth method