mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-28 14:56:36 +00:00
Add config items and checks
This commit is contained in:
@@ -189,6 +189,10 @@ func Load(configFile string) Configuration {
|
||||
if Conf.Server.Authentication == "local" && Conf.Server.DisableTLS {
|
||||
log.Fatalf("basicauth=local and disabletls are mutually exclusive")
|
||||
}
|
||||
|
||||
if !Conf.Caps.TokenAuth && Conf.Server.Authentication == "openid" {
|
||||
log.Fatalf("openid is configured but tokenauth disabled")
|
||||
}
|
||||
return Conf
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user