mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Changed autodetection of SiteURL (#3764)
* Changed autoconfiguration of SiteURL to be done on every request * Added SiteURL to system console
This commit is contained in:
@@ -186,7 +186,7 @@ func LoadConfig(fileName string) {
|
||||
|
||||
Cfg = &config
|
||||
CfgHash = fmt.Sprintf("%x", md5.Sum([]byte(Cfg.ToJson())))
|
||||
RegenerateClientConfig()
|
||||
ClientCfg = getClientConfig(Cfg)
|
||||
|
||||
// Actions that need to run every time the config is loaded
|
||||
if ldapI := einterfaces.GetLdapInterface(); ldapI != nil {
|
||||
@@ -199,10 +199,6 @@ func LoadConfig(fileName string) {
|
||||
}
|
||||
}
|
||||
|
||||
func RegenerateClientConfig() {
|
||||
ClientCfg = getClientConfig(Cfg)
|
||||
}
|
||||
|
||||
func getClientConfig(c *model.Config) map[string]string {
|
||||
props := make(map[string]string)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user