Do not fail if no .proxy (if we pass .env and not . to the template)

This commit is contained in:
Daniel Berteaud 2024-03-05 11:34:22 +01:00
parent f42a83d8ac
commit 115a251fa2
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
[[- end ]]
[[- end ]]
[[- end ]]
[[- if .proxy.enabled ]]
[[- if and (has . "proxy") .proxy.enabled ]]
[[- if not (has $env "HTTP_PROXY") ]]
HTTP_PROXY=[[ .proxy.address ]]
[[- end ]]