mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-23 13:09:23 -06:00
don't expose not used config via env
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
41403d7952
commit
45ec244aec
@@ -30,24 +30,24 @@ type Config struct {
|
||||
|
||||
// Backend defined the available backend configuration.
|
||||
type Backend struct {
|
||||
Datastore string `ocisConfig:"datastore" env:"GLAUTH_BACKEND_DATASTORE"`
|
||||
BaseDN string `ocisConfig:"base_dn" env:"GLAUTH_BACKEND_BASEDN"`
|
||||
Insecure bool `ocisConfig:"insecure" env:"GLAUTH_BACKEND_INSECURE"`
|
||||
NameFormat string `ocisConfig:"name_format" env:"GLAUTH_BACKEND_NAME_FORMAT"`
|
||||
GroupFormat string `ocisConfig:"group_format" env:"GLAUTH_BACKEND_GROUP_FORMAT"`
|
||||
Servers []string `ocisConfig:"servers"` //TODO: how to configure this via env?
|
||||
SSHKeyAttr string `ocisConfig:"ssh_key_attr" env:"GLAUTH_BACKEND_SSH_KEY_ATTR"`
|
||||
UseGraphAPI bool `ocisConfig:"use_graph_api" env:"GLAUTH_BACKEND_USE_GRAPHAPI"`
|
||||
Datastore string `ocisConfig:"datastore"`
|
||||
BaseDN string `ocisConfig:"base_dn"`
|
||||
Insecure bool `ocisConfig:"insecure"`
|
||||
NameFormat string `ocisConfig:"name_format"`
|
||||
GroupFormat string `ocisConfig:"group_format"`
|
||||
Servers []string `ocisConfig:"servers"`
|
||||
SSHKeyAttr string `ocisConfig:"ssh_key_attr"`
|
||||
UseGraphAPI bool `ocisConfig:"use_graph_api"`
|
||||
}
|
||||
|
||||
// FallbackBackend defined the available fallback backend configuration.
|
||||
type FallbackBackend struct {
|
||||
Datastore string `ocisConfig:"datastore" env:"GLAUTH_FALLBACK_DATASTORE"`
|
||||
BaseDN string `ocisConfig:"base_dn" env:"GLAUTH_FALLBACK_BASEDN"`
|
||||
Insecure bool `ocisConfig:"insecure" env:"GLAUTH_FALLBACK_INSECURE"`
|
||||
NameFormat string `ocisConfig:"name_format" env:"GLAUTH_FALLBACK_NAME_FORMAT"`
|
||||
GroupFormat string `ocisConfig:"group_format" env:"GLAUTH_FALLBACK_GROUP_FORMAT"`
|
||||
Servers []string `ocisConfig:"servers"` //TODO: how to configure this via env?
|
||||
SSHKeyAttr string `ocisConfig:"ssh_key_attr" env:"GLAUTH_FALLBACK_SSH_KEY_ATTR"`
|
||||
UseGraphAPI bool `ocisConfig:"use_graph_api" env:"GLAUTH_FALLBACK_USE_GRAPHAPI"`
|
||||
Datastore string `ocisConfig:"datastore"`
|
||||
BaseDN string `ocisConfig:"base_dn"`
|
||||
Insecure bool `ocisConfig:"insecure"`
|
||||
NameFormat string `ocisConfig:"name_format"`
|
||||
GroupFormat string `ocisConfig:"group_format"`
|
||||
Servers []string `ocisConfig:"servers"`
|
||||
SSHKeyAttr string `ocisConfig:"ssh_key_attr"`
|
||||
UseGraphAPI bool `ocisConfig:"use_graph_api"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user