Get ddclient working again

It was failing due to oom and using cloudflare api tokens which aren't yet supported
This commit is contained in:
IamTheFij 2022-09-07 12:20:58 -07:00
parent 50bdb61575
commit 04c76bd5f8

View File

@ -11,7 +11,7 @@ job "ddclient" {
mount {
type = "bind"
source = "local/ddclient.conf"
source = "secrets/ddclient.conf"
target = "/config/ddclient.conf"
}
}
@ -30,21 +30,25 @@ ssl=yes
use=web
protocol=cloudflare,
zone={{ key "ddclient/zone" }},
ttl=1,
{{ with secret "kv/data/cloudflare" -}}
password={{ .Data.data.api_token_dns_edit_all }}
login={{ .Data.data.api_user }},
password={{ .Data.data.api_key }}
# login=token,
# password={{ .Data.data.api_token_dns_edit_all }}
{{ end -}}
zone={{ key "ddclient/zone" }}
{{ key "ddclient/domain" }}
EOH
destination = "local/ddclient.conf"
destination = "secrets/ddclient.conf"
change_mode = "restart"
}
resources {
cpu = 50
memory = 20
memory = 50
memory_max = 100
}
}
}