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

View File

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