Documentation
¶
Overview ¶
Package config loads runtime configuration from environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Listen string // e.g. ":8080"
AdminHost string // host that serves the dashboard; empty = serve dashboard on any non-link host
DBDriver string // "sqlite" | "postgres"
DBDSN string // sqlite: file path; postgres: connection string
// SecretKey seeds both the session-cookie HMAC and the AES-GCM used to
// encrypt provider credentials at rest. Must be stable across restarts.
SecretKey string
AdminUser string
AdminPassword string
GeoIPDB string // optional path to a MaxMind GeoLite2-City.mmdb
}
Config holds all runtime configuration for led.
Click to show internal directories.
Click to hide internal directories.