don't ignore TRUST_PROXY

This commit is contained in:
AJ ONeal 2021-03-08 16:07:31 -07:00
parent cb3cd7ce4f
commit f985b6cc7b
1 changed files with 3 additions and 0 deletions

View File

@ -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")
}