2019-04-25 04:52:08 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2020-05-16 06:41:42 +07:00
|
|
|
Host string `mapstructure:"host"`
|
|
|
|
Port int `mapstructure:"port"`
|
2021-01-20 19:07:40 +07:00
|
|
|
Theme string `mapstructure:"theme"`
|
2020-05-16 06:41:42 +07:00
|
|
|
TLSCert string `mapstructure:"tls_cert"`
|
|
|
|
TLSKey string `mapstructure:"tls_key"`
|
2021-01-04 17:28:55 +07:00
|
|
|
CertificatesDirectory string `mapstructure:"certificates_directory"`
|
2020-05-16 06:41:42 +07:00
|
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
2019-04-25 04:52:08 +07:00
|
|
|
|
2021-06-01 11:09:50 +07:00
|
|
|
// TODO: DEPRECATED START. Remove in 4.33.0.
|
|
|
|
LogLevel string `mapstructure:"log_level"`
|
|
|
|
LogFormat string `mapstructure:"log_format"`
|
|
|
|
LogFilePath string `mapstructure:"log_file_path"`
|
|
|
|
// TODO: DEPRECATED END. Remove in 4.33.0.
|
|
|
|
|
|
|
|
Logging LoggingConfiguration `mapstructure:"logging"`
|
2021-05-05 05:06:05 +07:00
|
|
|
IdentityProviders IdentityProvidersConfiguration `mapstructure:"identity_providers"`
|
2020-01-22 03:56:44 +07:00
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `mapstructure:"session"`
|
2020-04-30 09:03:05 +07:00
|
|
|
TOTP *TOTPConfiguration `mapstructure:"totp"`
|
|
|
|
DuoAPI *DuoAPIConfiguration `mapstructure:"duo_api"`
|
|
|
|
AccessControl AccessControlConfiguration `mapstructure:"access_control"`
|
|
|
|
Regulation *RegulationConfiguration `mapstructure:"regulation"`
|
|
|
|
Storage StorageConfiguration `mapstructure:"storage"`
|
|
|
|
Notifier *NotifierConfiguration `mapstructure:"notifier"`
|
|
|
|
Server ServerConfiguration `mapstructure:"server"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|