Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the build version, set by the command wrapper.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Listen defaults to loopback. This surface can create tenants, read the
// audit log and change routing — it is an operator tool, not a public one.
Listen string `yaml:"listen"`
PolicyDB string `yaml:"policy_db"`
BaseDomain string `yaml:"base_domain"`
BrandName string `yaml:"brand_name"`
// ResolverAdmin is the resolver's admin API, used for live status: cache
// size, upstream health, blocklist size and uptime.
ResolverAdmin string `yaml:"resolver_admin"`
ResolverToken string `yaml:"resolver_token"`
SessionTTL time.Duration `yaml:"session_ttl"`
SecureCookies bool `yaml:"secure_cookies"`
TrustedProxies []string `yaml:"trusted_proxies"`
RateLimitQPS float64 `yaml:"rate_limit_qps"`
RateLimitBurst int `yaml:"rate_limit_burst"`
MaxLoginFailures int `yaml:"max_login_failures"`
LoginWindow time.Duration `yaml:"login_window"`
LogLevel string `yaml:"log_level"`
LogFormat string `yaml:"log_format"`
}
Config is the dashboard's configuration.
func DefaultConfig ¶
func DefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.