Update Cloudflare token variables

This commit is contained in:
IamTheFij 2022-11-21 14:25:01 -08:00
parent b046962b8c
commit b0ea77a9f7
2 changed files with 5 additions and 7 deletions

View File

@ -7,7 +7,7 @@ job "ddclient" {
task "ddclient" { task "ddclient" {
driver = "docker" driver = "docker"
config { config {
image = "linuxserver/ddclient:3.9.1" image = "ghcr.io/linuxserver/ddclient:v3.10.0-ls104"
mount { mount {
type = "bind" type = "bind"
@ -33,10 +33,8 @@ protocol=cloudflare,
zone={{ key "ddclient/zone" }}, zone={{ key "ddclient/zone" }},
ttl=1, ttl=1,
{{ with secret "kv/data/cloudflare" -}} {{ with secret "kv/data/cloudflare" -}}
login={{ .Data.data.api_user }}, login=token,
password={{ .Data.data.api_key }} password={{ .Data.data.domain_ddclient }}
# login=token,
# password={{ .Data.data.api_token_dns_edit_all }}
{{ end -}} {{ end -}}
{{ key "ddclient/domain" }} {{ key "ddclient/domain" }}

View File

@ -171,8 +171,8 @@ job "traefik" {
template { template {
data = <<EOH data = <<EOH
{{ with secret "kv/data/cloudflare" }} {{ with secret "kv/data/cloudflare" }}
CF_DNS_API_TOKEN={{ .Data.data.api_token_dns_edit }} CF_DNS_API_TOKEN={{ .Data.data.domain_lego_dns }}
CF_ZONE_API_TOKEN={{ .Data.data.api_token_zone_read }} CF_ZONE_API_TOKEN={{ .Data.data.domain_lego_dns }}
{{ end }} {{ end }}
EOH EOH
destination = "secrets/cloudflare.env" destination = "secrets/cloudflare.env"