Update Cloudflare token variables
This commit is contained in:
parent
b046962b8c
commit
b0ea77a9f7
@ -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" }}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user