2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2020-05-15 23:41:42 +00:00
|
|
|
Host string `mapstructure:"host"`
|
|
|
|
Port int `mapstructure:"port"`
|
2021-01-20 12:07:40 +00:00
|
|
|
Theme string `mapstructure:"theme"`
|
2020-05-15 23:41:42 +00:00
|
|
|
TLSCert string `mapstructure:"tls_cert"`
|
|
|
|
TLSKey string `mapstructure:"tls_key"`
|
2021-01-04 10:28:55 +00:00
|
|
|
CertificatesDirectory string `mapstructure:"certificates_directory"`
|
2020-05-15 23:41:42 +00:00
|
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
2019-04-24 21:52:08 +00:00
|
|
|
|
2021-06-01 04:09:50 +00: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.
|
|
|
|
|
2021-06-08 13:15:43 +00:00
|
|
|
Logging LogConfiguration `mapstructure:"log"`
|
2021-05-04 22:06:05 +00:00
|
|
|
IdentityProviders IdentityProvidersConfiguration `mapstructure:"identity_providers"`
|
2020-01-21 20:56:44 +00:00
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `mapstructure:"session"`
|
2020-04-30 02:03:05 +00: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-24 21:52:08 +00:00
|
|
|
}
|