Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
// TrustedProxies lists IPs/CIDRs whose X-Forwarded-For / X-Forwarded-Proto headers are honored.
TrustedProxies []string `yaml:"trusted-proxies"`
} `yaml:"server"`
DataDir string `yaml:"data-dir"`
Auth struct {
LoginRateLimit struct {
Attempts int `yaml:"attempts"`
Window time.Duration `yaml:"window"`
} `yaml:"login-rate-limit"`
} `yaml:"auth"`
// ProxyURL routes all upstream provider traffic through an HTTP(S) or SOCKS5 proxy.
ProxyURL string `yaml:"proxy-url"`
// contains filtered or unexported fields
}
Config holds bootstrap settings only. Users, keys, provider accounts and runtime settings live in the database and are managed from the dashboard.
func ForTesting ¶
ForTesting returns defaults with the given trusted proxies parsed.