0.3.6
This commit is contained in:
1 parent
c85c9fc144
commit
50b53e72f0
5 files changed
+21
-2
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user