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
|
|
|
LogLevel string `mapstructure:"log_level"`
|
2020-11-24 23:46:41 +00:00
|
|
|
LogFormat string `mapstructure:"log_format"`
|
2020-05-15 23:41:42 +00:00
|
|
|
LogFilePath string `mapstructure:"log_file_path"`
|
|
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
2019-04-24 21:52:08 +00:00
|
|
|
|
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
|
|
|
}
|