Make sure the configured frontend url always has a / at the end
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2021-05-28 08:39:27 +02:00
parent e23014dbe4
commit afd6bde74d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -378,6 +378,10 @@ func InitConfig() {
MetricsEnabled.Set(true)
}
if ServiceFrontendurl.GetString() != "" && !strings.HasSuffix(ServiceFrontendurl.GetString(), "/") {
ServiceFrontendurl.Set(ServiceFrontendurl.GetString() + "/")
}
log.Printf("Using config file: %s", viper.ConfigFileUsed())
}