This commit is contained in:
Mateusz Gruszczyński committed 2026-11-04 23:19:10 +01:00
1 parent c85c9fc144
commit 50b53e72f0
5 files changed
+21 -2

No files matched your search

+2
View File
@@ -15,6 +15,7 @@ type Config struct {
ListenAddr string
AppSecret string
HTTPSOnly bool
Debug bool
FrameAncestors []string
TrustedProxies []*net.IPNet
TSQueryHost string
@@ -39,6 +40,7 @@ func Load() (Config, error) {
return c, errors.New("APP_SECRET must contain at least 32 characters")
}
c.HTTPSOnly = envBool("HTTPS_ONLY", true)
c.Debug = envBool("DEBUG", false)
var err error
c.FrameAncestors, err = frameAncestors(os.Getenv("FRAME_ANCESTORS"))