2021-05-02 22:49:16 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Config struct {
|
2022-08-05 22:24:49 +00:00
|
|
|
Debug bool `yaml:"debug" env:"AUTHENTIK_DEBUG"`
|
|
|
|
SecretKey string `yaml:"secret_key" env:"AUTHENTIK_SECRET_KEY"`
|
|
|
|
Listen ListenConfig `yaml:"listen"`
|
|
|
|
Paths PathsConfig `yaml:"paths"`
|
|
|
|
LogLevel string `yaml:"log_level" env:"AUTHENTIK_LOG_LEVEL"`
|
|
|
|
ErrorReporting ErrorReportingConfig `yaml:"error_reporting"`
|
|
|
|
Redis RedisConfig `yaml:"redis"`
|
|
|
|
Outposts OutpostConfig `yaml:"outposts" `
|
2021-08-07 20:12:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
2022-11-15 13:31:29 +00:00
|
|
|
DB int `yaml:"cache_db" env:"AUTHENTIK_REDIS__CACHE_DB"`
|
2021-08-07 20:12:22 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-08-03 19:33:27 +00:00
|
|
|
type ListenConfig struct {
|
|
|
|
HTTP string `yaml:"listen_http" env:"AUTHENTIK_LISTEN__HTTP"`
|
|
|
|
HTTPS string `yaml:"listen_https" env:"AUTHENTIK_LISTEN__HTTPS"`
|
2022-08-05 22:24:49 +00:00
|
|
|
LDAP string `yaml:"listen_ldap" env:"AUTHENTIK_LISTEN__LDAP"`
|
|
|
|
LDAPS string `yaml:"listen_ldaps" env:"AUTHENTIK_LISTEN__LDAPS"`
|
|
|
|
Metrics string `yaml:"listen_metrics" env:"AUTHENTIK_LISTEN__METRICS"`
|
|
|
|
Debug string `yaml:"listen_debug" env:"AUTHENTIK_LISTEN__DEBUG"`
|
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-11-02 13:44:37 +00:00
|
|
|
DSN string
|
2021-12-20 18:42:26 +00:00
|
|
|
SampleRate float64 `yaml:"sample_rate" env:"AUTHENTIK_ERROR_REPORTING__SAMPLE_RATE"`
|
2021-05-04 12:28:48 +00:00
|
|
|
}
|
2022-08-05 22:24:49 +00:00
|
|
|
|
|
|
|
type OutpostConfig struct {
|
|
|
|
ContainerImageBase string `yaml:"container_image_base" env:"AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE"`
|
|
|
|
Discover bool `yaml:"discover" env:"AUTHENTIK_OUTPOSTS__DISCOVER"`
|
|
|
|
DisableEmbeddedOutpost bool `yaml:"disable_embedded_outpost" env:"AUTHENTIK_OUTPOSTS__DISABLE_EMBEDDED_OUTPOST"`
|
|
|
|
}
|