diff --git a/pkg/config/config.go b/pkg/config/config.go index 64a048e93d3..d7df8e96bb3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -361,6 +361,10 @@ func InitConfig() { RateLimitStore.Set(KeyvalueType.GetString()) } + if ServiceFrontendurl.GetString() != "" && !strings.HasSuffix(ServiceFrontendurl.GetString(), "/") { + ServiceFrontendurl.Set(ServiceFrontendurl.GetString() + "/") + } + if AuthOpenIDRedirectURL.GetString() == "" { AuthOpenIDRedirectURL.Set(ServiceFrontendurl.GetString() + "auth/openid/") } @@ -378,10 +382,6 @@ func InitConfig() { MetricsEnabled.Set(true) } - if ServiceFrontendurl.GetString() != "" && !strings.HasSuffix(ServiceFrontendurl.GetString(), "/") { - ServiceFrontendurl.Set(ServiceFrontendurl.GetString() + "/") - } - log.Printf("Using config file: %s", viper.ConfigFileUsed()) }