فهرست منبع

fix: Add default filter for OVH endpoint to handle undefined values

Co-authored-by: ChristianLempa <28359525+ChristianLempa@users.noreply.github.com>
copilot-swe-agent[bot] 1 ماه پیش
والد
کامیت
1d2bae31f2
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      library/compose/traefik/.env.j2
  2. 1 1
      library/compose/traefik/compose.yaml.j2

+ 1 - 1
library/compose/traefik/.env.j2

@@ -18,7 +18,7 @@ AZURE_CLIENT_SECRET={{ traefik_tls_acme_secret_key }}
 {% elif traefik_tls_certresolver == 'namecheap' %}
 NAMECHEAP_API_KEY={{ traefik_tls_acme_token }}
 {% elif traefik_tls_certresolver == 'ovh' %}
-OVH_ENDPOINT={{ traefik_tls_acme_endpoint }}
+OVH_ENDPOINT={{ traefik_tls_acme_endpoint | default('ovh-eu') }}
 OVH_APPLICATION_KEY={{ traefik_tls_acme_token }}
 OVH_APPLICATION_SECRET={{ traefik_tls_acme_secret_key }}
 OVH_CONSUMER_KEY={{ traefik_tls_acme_consumer_key }}

+ 1 - 1
library/compose/traefik/compose.yaml.j2

@@ -143,7 +143,7 @@ services:
       {% endif %}
       - NAMECHEAP_API_USER={{ traefik_tls_acme_username }}
       {% elif traefik_tls_certresolver == 'ovh' %}
-      - OVH_ENDPOINT={{ traefik_tls_acme_endpoint }}
+      - OVH_ENDPOINT={{ traefik_tls_acme_endpoint | default('ovh-eu') }}
       {% if swarm_enabled %}
       - OVH_APPLICATION_KEY_FILE=/run/secrets/{{ service_name }}_token
       - OVH_APPLICATION_SECRET_FILE=/run/secrets/{{ service_name }}_token_key