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 a9073aafd4
commit cb46743043

View File

@ -11,7 +11,7 @@ job "ddclient" {
mount { mount {
type = "bind" type = "bind"
source = "local/ddclient.conf" source = "secrets/ddclient.conf"
target = "/config/ddclient.conf" target = "/config/ddclient.conf"
} }
} }
@ -30,21 +30,25 @@ ssl=yes
use=web use=web
protocol=cloudflare, protocol=cloudflare,
zone={{ key "ddclient/zone" }},
ttl=1, ttl=1,
{{ with secret "kv/data/cloudflare" -}} {{ 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 -}} {{ end -}}
zone={{ key "ddclient/zone" }}
{{ key "ddclient/domain" }} {{ key "ddclient/domain" }}
EOH EOH
destination = "local/ddclient.conf" destination = "secrets/ddclient.conf"
change_mode = "restart" change_mode = "restart"
} }
resources { resources {
cpu = 50 cpu = 50
memory = 20 memory = 50
memory_max = 100
} }
} }
} }