mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
2c42464fc8
* refactor: logging config key to log This refactors the recent pre-release change adding log options to their own configuration section in favor of a log section (from logging). * docs: add step to getting started to get the latest tagged commit This is so we avoid issues with changes on master having differences that don't work on the latest docker tag. * test: adjust tests * docs: adjust doc strings
32 lines
1.7 KiB
Go
32 lines
1.7 KiB
Go
package schema
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
type Configuration struct {
|
|
Host string `mapstructure:"host"`
|
|
Port int `mapstructure:"port"`
|
|
Theme string `mapstructure:"theme"`
|
|
TLSCert string `mapstructure:"tls_cert"`
|
|
TLSKey string `mapstructure:"tls_key"`
|
|
CertificatesDirectory string `mapstructure:"certificates_directory"`
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
|
|
|
// 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 LogConfiguration `mapstructure:"log"`
|
|
IdentityProviders IdentityProvidersConfiguration `mapstructure:"identity_providers"`
|
|
AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"`
|
|
Session SessionConfiguration `mapstructure:"session"`
|
|
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"`
|
|
}
|