mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Merge pull request #1086 from SISheogorath/feature/urlWarning
Warn on missing serverURL
This commit is contained in:
commit
786140331b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue