Use the proxy_env template

This commit is contained in:
Daniel Berteaud 2023-09-01 13:48:52 +02:00
parent db5df10970
commit a501abcd91
2 changed files with 2 additions and 6 deletions

View File

@ -37,16 +37,12 @@ job "acme-to-vault" {
env {
TZ = [[ .locale.tz | toJSON ]]
[[- if has .proxy "service_name" ]]
HTTPS_PROXY = "http://localhost:3128"
HTTP_PROXY = "http://localhost:3128"
NO_PROXY = [[ join .proxy.no_proxy "," | toJSON ]]
[[- end ]]
[[- if has .acme.vault "service_name" ]]
VAULT_ADDR = "http://localhost:8200"
[[- else ]]
VAULT_ADDR = [[ .acme.vault.addr | toJSON ]]
[[- end ]]
[[- template "common/proxy_env.tpl" . -]]
ACME_CRON = [[ .acme.cron | toJSON ]]
ACME_KV_ACCOUNT_ROOT = [[ .acme.vault.kv_account_root | toJSON ]]
[[- range $acc_idx, $account := .acme.accounts ]]

2
deps/common vendored

@ -1 +1 @@
Subproject commit 8cfe263f274b066e8021e5f821ef6fd465f645f9
Subproject commit df3e7fd52e5758d54c0dcad522260b1416d92884