From 31a138a6ba7570b7bb9cd8ebc60c28d284c74302 Mon Sep 17 00:00:00 2001 From: wjbeckett Date: Mon, 30 Sep 2024 12:47:42 +1000 Subject: [PATCH] fixed traefik router issues. --- .../templates/element-call-labels.j2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/custom/matrix-element-call/templates/element-call-labels.j2 b/roles/custom/matrix-element-call/templates/element-call-labels.j2 index feeeb2c65..5287ab98c 100644 --- a/roles/custom/matrix-element-call/templates/element-call-labels.j2 +++ b/roles/custom/matrix-element-call/templates/element-call-labels.j2 @@ -22,23 +22,23 @@ traefik.http.middlewares.element-call-strip-prefix.stripprefix.prefixes={{ matri {% if matrix_element_call_container_labels_traefik_additional_response_headers.keys() | length > 0 %} {% for name, value in matrix_element_call_container_labels_traefik_additional_response_headers.items() %} -traefik.http.middlewares.matrix-element-call-add-headers.headers.customresponseheaders.{{ name }}={{ value }} +traefik.http.middlewares.element-call-add-headers.headers.customresponseheaders.{{ name }}={{ value }} {% endfor %} -{% set middlewares = middlewares + ['matrix-element-call-add-headers'] %} +{% set middlewares = middlewares + ['element-call-add-headers'] %} {% endif %} -traefik.http.routers.matrix-element-call.rule={{ matrix_element_call_container_labels_traefik_rule }} +traefik.http.routers.element-call.rule={{ matrix_element_call_container_labels_traefik_rule }} {% if matrix_element_call_container_labels_traefik_priority | int > 0 %} -traefik.http.routers.matrix-element-call.priority={{ matrix_element_call_container_labels_traefik_priority }} +traefik.http.routers.element-call.priority={{ matrix_element_call_container_labels_traefik_priority }} {% endif %} -traefik.http.routers.matrix-element-call.service=matrix-element-call +traefik.http.routers.element-call.service=matrix-element-call {% if middlewares | length > 0 %} -traefik.http.routers.matrix-element-call.middlewares={{ middlewares | join(',') }} +traefik.http.routers.element-call.middlewares={{ middlewares | join(',') }} {% endif %} -traefik.http.routers.matrix-element-call.entrypoints={{ matrix_element_call_container_labels_traefik_entrypoints }} -traefik.http.routers.matrix-element-call.tls={{ matrix_element_call_container_labels_traefik_tls | to_json }} +traefik.http.routers.element-call.entrypoints={{ matrix_element_call_container_labels_traefik_entrypoints }} +traefik.http.routers.element-call.tls={{ matrix_element_call_container_labels_traefik_tls | to_json }} {% if matrix_element_call_container_labels_traefik_tls %} -traefik.http.routers.matrix-element-call.tls.certResolver={{ matrix_element_call_container_labels_traefik_tls_certResolver }} +traefik.http.routers.element-call.tls.certResolver={{ matrix_element_call_container_labels_traefik_tls_certResolver }} {% endif %} {% endif %}