Add config items and checks

This commit is contained in:
Bolke de Bruin
2022-08-25 12:26:03 +02:00
parent 768ee45974
commit 16c087d3bf
2 changed files with 12 additions and 0 deletions

View File

@@ -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
}