don't ignore TRUST_PROXY
This commit is contained in:
parent
cb3cd7ce4f
commit
f985b6cc7b
3
main.go
3
main.go
|
@ -157,6 +157,9 @@ func main() {
|
|||
if 0 == len(runOpts.RepoList) {
|
||||
runOpts.RepoList = os.Getenv("TRUST_REPOS")
|
||||
}
|
||||
if !runOpts.TrustProxy {
|
||||
runOpts.TrustProxy = ("TRUE" == strings.ToUpper(os.Getenv("TRUST_PROXY")))
|
||||
}
|
||||
if 0 == len(runOpts.LogDir) {
|
||||
runOpts.LogDir = os.Getenv("LOG_DIR")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue