diff --git a/nomad/ddclient.nomad b/nomad/ddclient.nomad index 13a6261..08abade 100644 --- a/nomad/ddclient.nomad +++ b/nomad/ddclient.nomad @@ -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 } } }