added new var name for traefik cf
This commit is contained in:
@@ -72,11 +72,16 @@
|
|||||||
{% if cf_secrets_payload is defined and cf_secrets_payload is mapping %}
|
{% if cf_secrets_payload is defined and cf_secrets_payload is mapping %}
|
||||||
{% for key, value in cf_secrets_payload.items() %}
|
{% 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'] %}
|
{% 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 == 'api_token' %}
|
||||||
{% if key == 'dns_api_token' %}CF_ZONE_API_TOKEN={{ value }}{% endif %}
|
CF_DNS_API_TOKEN={{ value }}
|
||||||
{% if key == 'email' %}CF_API_EMAIL={{ value }}{% endif %}
|
CF_ZONE_API_TOKEN={{ value }}
|
||||||
# Original auch schreiben
|
{% endif %}
|
||||||
|
|
||||||
|
{% if key == 'email' %}
|
||||||
|
CF_API_EMAIL={{ value }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ key | trim }}={{ value }}
|
{{ key | trim }}={{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user