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"`
|
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"`
|
|
|
|
Session SessionConfiguration `koanf:"session"`
|
2022-03-03 11:20:43 +00:00
|
|
|
TOTP TOTPConfiguration `koanf:"totp"`
|
2021-08-03 09:55:21 +00:00
|
|
|
DuoAPI *DuoAPIConfiguration `koanf:"duo_api"`
|
|
|
|
AccessControl AccessControlConfiguration `koanf:"access_control"`
|
2022-03-02 06:40:26 +00:00
|
|
|
NTP NTPConfiguration `koanf:"ntp"`
|
|
|
|
Regulation RegulationConfiguration `koanf:"regulation"`
|
2021-08-03 09:55:21 +00:00
|
|
|
Storage StorageConfiguration `koanf:"storage"`
|
|
|
|
Notifier *NotifierConfiguration `koanf:"notifier"`
|
|
|
|
Server ServerConfiguration `koanf:"server"`
|
2022-03-03 11:20:43 +00:00
|
|
|
Webauthn WebauthnConfiguration `koanf:"webauthn"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|