mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
c9e8a924e0
* implement read buffer size config option * implement write buffer size config option * implement fasthttp ErrorHandler so we can log errors to Authelia as well * add struct/schema validation * add default value * add docs * add config key to validator * refactoring * apply suggestions from code review Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
26 lines
1.5 KiB
Go
26 lines
1.5 KiB
Go
package schema
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
type Configuration struct {
|
|
Host string `mapstructure:"host"`
|
|
Port int `mapstructure:"port"`
|
|
TLSCert string `mapstructure:"tls_cert"`
|
|
TLSKey string `mapstructure:"tls_key"`
|
|
LogLevel string `mapstructure:"log_level"`
|
|
LogFilePath string `mapstructure:"log_file_path"`
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
|
GoogleAnalyticsTrackingID string `mapstructure:"google_analytics"`
|
|
|
|
// TODO: Consider refactoring the following pointers as they don't seem to need to be pointers: TOTP, Notifier, Regulation
|
|
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"`
|
|
}
|