feat(env): support BIND environment variable

This commit is contained in:
2022-11-14 18:59:43 +00:00
parent 9a904fee99
commit 623d2c21b0

View File

@@ -118,6 +118,13 @@ func startServer() error {
} }
} }
if *bindFlag == defaultBind {
envBind := os.Getenv("BIND")
if envBind != "" {
*bindFlag = envBind
}
}
if !*forceHTTPSFlag && os.Getenv("FORCE_HTTPS") != "" { if !*forceHTTPSFlag && os.Getenv("FORCE_HTTPS") != "" {
*forceHTTPSFlag = true *forceHTTPSFlag = true
} }