2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2021-08-03 09:55:21 +00:00
|
|
|
Theme string `koanf:"theme"`
|
|
|
|
CertificatesDirectory string `koanf:"certificates_directory"`
|
|
|
|
JWTSecret string `koanf:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `koanf:"default_redirection_url"`
|
2022-04-17 23:58:24 +00:00
|
|
|
Default2FAMethod string `koanf:"default_2fa_method"`
|
2019-04-24 21:52:08 +00:00
|
|
|
|
2021-08-03 09:55:21 +00:00
|
|
|
Log LogConfiguration `koanf:"log"`
|
|
|
|
IdentityProviders IdentityProvidersConfiguration `koanf:"identity_providers"`
|
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `koanf:"authentication_backend"`
|
2022-04-03 00:48:26 +00:00
|
|
|
Session SessionConfiguration `koanf:"session"`
|
2022-03-03 11:20:43 +00:00
|
|
|
TOTP TOTPConfiguration `koanf:"totp"`
|
2022-04-15 23:34:26 +00:00
|
|
|
DuoAPI DuoAPIConfiguration `koanf:"duo_api"`
|
2021-08-03 09:55:21 +00:00
|
|
|
AccessControl AccessControlConfiguration `koanf:"access_control"`
|
2022-04-03 00:48:26 +00:00
|
|
|
NTP NTPConfiguration `koanf:"ntp"`
|
2022-03-02 06:40:26 +00:00
|
|
|
Regulation RegulationConfiguration `koanf:"regulation"`
|
2022-04-03 00:48:26 +00:00
|
|
|
Storage StorageConfiguration `koanf:"storage"`
|
2022-04-15 23:34:26 +00:00
|
|
|
Notifier NotifierConfiguration `koanf:"notifier"`
|
2022-04-03 00:48:26 +00:00
|
|
|
Server ServerConfiguration `koanf:"server"`
|
2022-06-14 07:20:13 +00:00
|
|
|
Telemetry TelemetryConfig `koanf:"telemetry"`
|
2022-04-03 00:48:26 +00:00
|
|
|
Webauthn WebauthnConfiguration `koanf:"webauthn"`
|
|
|
|
PasswordPolicy PasswordPolicyConfiguration `koanf:"password_policy"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|