mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Make docker image use sratch
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user