2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2020-03-03 07:18:25 +00:00
|
|
|
Host string `mapstructure:"host"`
|
|
|
|
Port int `mapstructure:"port"`
|
|
|
|
TLSCert string `mapstructure:"tls_cert"`
|
|
|
|
TLSKey string `mapstructure:"tls_key"`
|
|
|
|
|
2020-03-09 19:57:53 +00:00
|
|
|
LogLevel string `mapstructure:"log_level"`
|
|
|
|
LogFilePath string `mapstructure:"log_file_path"`
|
2019-12-07 16:40:42 +00:00
|
|
|
|
2020-01-21 20:56:44 +00:00
|
|
|
// This secret is used by the identity validation process to forge JWT tokens
|
|
|
|
// representing the permission to proceed with the operation.
|
|
|
|
JWTSecret string `mapstructure:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
|
2020-02-06 02:53:02 +00:00
|
|
|
GoogleAnalyticsTrackingID string `mapstructure:"google_analytics"`
|
2019-04-24 21:52:08 +00:00
|
|
|
|
2020-01-21 20:56:44 +00:00
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `mapstructure:"session"`
|
|
|
|
|
2020-02-04 21:18:02 +00:00
|
|
|
TOTP *TOTPConfiguration `mapstructure:"totp"`
|
|
|
|
DuoAPI *DuoAPIConfiguration `mapstructure:"duo_api"`
|
|
|
|
AccessControl AccessControlConfiguration `mapstructure:"access_control"`
|
|
|
|
Regulation *RegulationConfiguration `mapstructure:"regulation"`
|
2020-02-06 02:53:02 +00:00
|
|
|
Storage StorageConfiguration `mapstructure:"storage"`
|
2020-02-04 21:18:02 +00:00
|
|
|
Notifier *NotifierConfiguration `mapstructure:"notifier"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|