2019-04-25 04:52:08 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// Configuration object extracted from YAML configuration file.
|
|
|
|
type Configuration struct {
|
2019-12-07 03:45:59 +07:00
|
|
|
Host string `yaml:"host"`
|
2019-12-07 23:40:42 +07: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-25 04:52:08 +07: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"`
|
|
|
|
}
|