Make docker image use sratch

This commit is contained in:
Bolke de Bruin
2022-08-26 09:46:59 +02:00
parent 96dcc62e11
commit 50f6d343f1
3 changed files with 16 additions and 19 deletions

View File

@@ -193,6 +193,12 @@ func Load(configFile string) Configuration {
if !Conf.Caps.TokenAuth && Conf.Server.Authentication == "openid" {
log.Fatalf("openid is configured but tokenauth disabled")
}
// prepend '//' if required for URL parsing
if !strings.Contains(Conf.Server.GatewayAddress, "//") {
Conf.Server.GatewayAddress = "//" + Conf.Server.GatewayAddress
}
return Conf
}

View File

@@ -88,7 +88,7 @@ func main() {
url.Scheme = "https"
}
url.Path = "callback"
api.GatewayAddress = url.Host
api.GatewayAddress = url.String()
oauthConfig := oauth2.Config{
ClientID: conf.OpenId.ClientId,