2019-04-25 04:52:08 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2021-08-03 16:55:21 +07:00
|
|
|
Theme string `koanf:"theme"`
|
|
|
|
CertificatesDirectory string `koanf:"certificates_directory"`
|
|
|
|
JWTSecret string `koanf:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `koanf:"default_redirection_url"`
|
2019-04-25 04:52:08 +07:00
|
|
|
|
2021-08-02 18:55:30 +07:00
|
|
|
Host string `koanf:"host"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
Port int `koanf:"port"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
TLSCert string `koanf:"tls_cert"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
TLSKey string `koanf:"tls_key"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
LogLevel string `koanf:"log_level"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
LogFormat string `koanf:"log_format"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
|
|
|
LogFilePath string `koanf:"log_file_path"` // Deprecated: To be Removed. TODO: Remove in 4.33.0.
|
2021-06-01 11:09:50 +07:00
|
|
|
|
2021-08-03 16:55:21 +07:00
|
|
|
Log LogConfiguration `koanf:"log"`
|
|
|
|
IdentityProviders IdentityProvidersConfiguration `koanf:"identity_providers"`
|
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `koanf:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `koanf:"session"`
|
|
|
|
TOTP *TOTPConfiguration `koanf:"totp"`
|
|
|
|
DuoAPI *DuoAPIConfiguration `koanf:"duo_api"`
|
|
|
|
AccessControl AccessControlConfiguration `koanf:"access_control"`
|
2021-09-17 11:44:35 +07:00
|
|
|
NTP *NTPConfiguration `koanf:"ntp"`
|
2021-08-03 16:55:21 +07:00
|
|
|
Regulation *RegulationConfiguration `koanf:"regulation"`
|
|
|
|
Storage StorageConfiguration `koanf:"storage"`
|
|
|
|
Notifier *NotifierConfiguration `koanf:"notifier"`
|
|
|
|
Server ServerConfiguration `koanf:"server"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|