mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Defaulting to domain of localhost when no domain is given
This commit is contained in:
@@ -221,6 +221,10 @@ func LoadConfig(fileName string) {
|
||||
// Grabs the domain from enviroment variable if not in configuration
|
||||
if config.ServiceSettings.Domain == "" {
|
||||
config.ServiceSettings.Domain = os.Getenv("MATTERMOST_DOMAIN")
|
||||
// If the enviroment variable is not set, use a default
|
||||
if config.ServiceSettings.Domain == "" {
|
||||
config.ServiceSettings.Domain = "localhost"
|
||||
}
|
||||
}
|
||||
|
||||
// Check for a valid email for feedback, if not then do feedback@domain
|
||||
|
||||
Reference in New Issue
Block a user