Make sure the configured frontend url always has a / at the end
This commit is contained in:
parent
e23014dbe4
commit
afd6bde74d
1 changed files with 4 additions and 0 deletions
|
@ -378,6 +378,10 @@ func InitConfig() {
|
||||||
MetricsEnabled.Set(true)
|
MetricsEnabled.Set(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ServiceFrontendurl.GetString() != "" && !strings.HasSuffix(ServiceFrontendurl.GetString(), "/") {
|
||||||
|
ServiceFrontendurl.Set(ServiceFrontendurl.GetString() + "/")
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Using config file: %s", viper.ConfigFileUsed())
|
log.Printf("Using config file: %s", viper.ConfigFileUsed())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue