added new var name for traefik cf

This commit is contained in:
Ubuntu
2026-01-12 00:30:02 +00:00
parent 47870c4f24
commit 120db39bc1

View File

@@ -72,11 +72,16 @@
{% if cf_secrets_payload is defined and cf_secrets_payload is mapping %}
{% for key, value in cf_secrets_payload.items() %}
{% if key not in ['data', 'metadata', 'auth', 'lease_id', 'lease_duration', 'renewable', 'request_id', 'wrap_info', 'warnings', 'raw'] %}
# Mappe keys falls nötig: dns_api_token -> CF_DNS_API_TOKEN
{% if key == 'dns_api_token' %}CF_DNS_API_TOKEN={{ value }}{% endif %}
{% if key == 'dns_api_token' %}CF_ZONE_API_TOKEN={{ value }}{% endif %}
{% if key == 'email' %}CF_API_EMAIL={{ value }}{% endif %}
# Original auch schreiben
{% if key == 'api_token' %}
CF_DNS_API_TOKEN={{ value }}
CF_ZONE_API_TOKEN={{ value }}
{% endif %}
{% if key == 'email' %}
CF_API_EMAIL={{ value }}
{% endif %}
{{ key | trim }}={{ value }}
{% endif %}
{% endfor %}