Changed autodetection of SiteURL (#3764)
* Changed autoconfiguration of SiteURL to be done on every request * Added SiteURL to system console
Этот коммит содержится в:
коммит произвёл
enahum
родитель
09d98b486e
Коммит
0afa28de09
@@ -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)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user