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
|
|
|
|
2022-10-17 10:51:59 +00:00
|
|
|
Log LogConfiguration `koanf:"log"`
|
|
|
|
IdentityProviders IdentityProvidersConfiguration `koanf:"identity_providers"`
|
|
|
|
AuthenticationBackend AuthenticationBackend `koanf:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `koanf:"session"`
|
|
|
|
TOTP TOTPConfiguration `koanf:"totp"`
|
|
|
|
DuoAPI DuoAPIConfiguration `koanf:"duo_api"`
|
|
|
|
AccessControl AccessControlConfiguration `koanf:"access_control"`
|
|
|
|
NTP NTPConfiguration `koanf:"ntp"`
|
|
|
|
Regulation RegulationConfiguration `koanf:"regulation"`
|
|
|
|
Storage StorageConfiguration `koanf:"storage"`
|
|
|
|
Notifier NotifierConfiguration `koanf:"notifier"`
|
|
|
|
Server ServerConfiguration `koanf:"server"`
|
|
|
|
Telemetry TelemetryConfig `koanf:"telemetry"`
|
2023-04-11 04:40:09 +00:00
|
|
|
WebAuthn WebAuthnConfiguration `koanf:"webauthn"`
|
2022-10-17 10:51:59 +00:00
|
|
|
PasswordPolicy PasswordPolicyConfiguration `koanf:"password_policy"`
|
2023-01-22 08:58:07 +00:00
|
|
|
PrivacyPolicy PrivacyPolicy `koanf:"privacy_policy"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|