2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2019-12-06 20:45:59 +00:00
|
|
|
Host string `yaml:"host"`
|
2019-12-07 16:40:42 +00:00
|
|
|
Port int `yaml:"port"`
|
|
|
|
LogsLevel string `yaml:"logs_level"`
|
|
|
|
JWTSecret string `yaml:"jwt_secret"`
|
|
|
|
DefaultRedirectionURL string `yaml:"default_redirection_url"`
|
|
|
|
GoogleAnalyticsTrackingID string `yaml:"google_analytics"`
|
|
|
|
|
2019-04-24 21:52:08 +00:00
|
|
|
AuthenticationBackend AuthenticationBackendConfiguration `yaml:"authentication_backend"`
|
|
|
|
Session SessionConfiguration `yaml:"session"`
|
|
|
|
|
|
|
|
TOTP *TOTPConfiguration `yaml:"totp"`
|
|
|
|
DuoAPI *DuoAPIConfiguration `yaml:"duo_api"`
|
|
|
|
AccessControl *AccessControlConfiguration `yaml:"access_control"`
|
|
|
|
Regulation *RegulationConfiguration `yaml:"regulation"`
|
|
|
|
Storage *StorageConfiguration `yaml:"storage"`
|
|
|
|
Notifier *NotifierConfiguration `yaml:"notifier"`
|
|
|
|
}
|