2021-05-02 22:49:16 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Config struct {
|
2021-07-29 09:30:30 +00:00
|
|
|
Debug bool `yaml:"debug" env:"AUTHENTIK_DEBUG"`
|
|
|
|
SecretKey string `yaml:"secret_key" env:"AUTHENTIK_SECRET_KEY"`
|
2021-05-04 12:28:48 +00:00
|
|
|
Web WebConfig `yaml:"web"`
|
|
|
|
Paths PathsConfig `yaml:"paths"`
|
2021-07-29 09:30:30 +00:00
|
|
|
LogLevel string `yaml:"log_level" env:"AUTHENTIK_LOG_LEVEL"`
|
2021-05-04 12:28:48 +00:00
|
|
|
ErrorReporting ErrorReportingConfig `yaml:"error_reporting"`
|
2021-08-07 20:12:22 +00:00
|
|
|
Redis RedisConfig `yaml:"redis"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RedisConfig struct {
|
|
|
|
Host string `yaml:"host" env:"AUTHENTIK_REDIS__HOST"`
|
|
|
|
Port int `yaml:"port" env:"AUTHENTIK_REDIS__PORT"`
|
|
|
|
Password string `yaml:"password" env:"AUTHENTIK_REDIS__PASSWORD"`
|
|
|
|
TLS bool `yaml:"tls" env:"AUTHENTIK_REDIS__TLS"`
|
|
|
|
TLSReqs string `yaml:"tls_reqs" env:"AUTHENTIK_REDIS__TLS_REQS"`
|
|
|
|
CacheDB int `yaml:"cache_db" env:"AUTHENTIK_REDIS__CACHE_DB"`
|
|
|
|
MessageQueueDB int `yaml:"message_queue_db" env:"AUTHENTIK_REDIS__MESSAGE_QUEUE_DB"`
|
|
|
|
WSDB int `yaml:"ws_db" env:"AUTHENTIK_REDIS__WS_DB"`
|
|
|
|
OutpostSessionDB int `yaml:"outpost_session_db" env:"AUTHENTIK_REDIS__OUTPOST_SESSION_DB"`
|
|
|
|
CacheTimeout int `yaml:"cache_timeout" env:"AUTHENTIK_REDIS__CACHE_TIMEOUT"`
|
|
|
|
CacheTimeoutFlows int `yaml:"cache_timeout_flows" env:"AUTHENTIK_REDIS__CACHE_TIMEOUT_FLOWS"`
|
|
|
|
CacheTimeoutPolicies int `yaml:"cache_timeout_policies" env:"AUTHENTIK_REDIS__CACHE_TIMEOUT_POLICIES"`
|
|
|
|
CacheTimeoutReputation int `yaml:"cache_timeout_reputation" env:"AUTHENTIK_REDIS__CACHE_TIMEOUT_REPUTATION"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebConfig struct {
|
2021-08-29 17:19:13 +00:00
|
|
|
Listen string `yaml:"listen"`
|
|
|
|
ListenTLS string `yaml:"listen_tls"`
|
|
|
|
LoadLocalFiles bool `yaml:"load_local_files" env:"AUTHENTIK_WEB_LOAD_LOCAL_FILES"`
|
|
|
|
DisableEmbeddedOutpost bool `yaml:"disable_embedded_outpost" env:"AUTHENTIK_WEB__DISABLE_EMBEDDED_OUTPOST"`
|
2021-09-08 19:01:17 +00:00
|
|
|
OutpostPortOffset int `yaml:"outpost_port_offset"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PathsConfig struct {
|
2021-05-04 12:07:12 +00:00
|
|
|
Media string `yaml:"media"`
|
2021-05-02 22:49:16 +00:00
|
|
|
}
|
2021-05-04 12:28:48 +00:00
|
|
|
|
|
|
|
type ErrorReportingConfig struct {
|
2021-07-29 09:30:30 +00:00
|
|
|
Enabled bool `yaml:"enabled" env:"AUTHENTIK_ERROR_REPORTING__ENABLED"`
|
|
|
|
Environment string `yaml:"environment" env:"AUTHENTIK_ERROR_REPORTING__ENVIRONMENT"`
|
|
|
|
SendPII bool `yaml:"send_pii" env:"AUTHENTIK_ERROR_REPORTING__SEND_PII"`
|
2021-05-04 12:28:48 +00:00
|
|
|
}
|