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

View File

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