From 6c8923ae2879948fbdaa794bdb5992aee1a13e3c Mon Sep 17 00:00:00 2001 From: wjbeckett Date: Tue, 1 Oct 2024 16:51:06 +1000 Subject: [PATCH] removed headers. --- .../templates/element-call-labels.j2 | 12 ++++++------ roles/custom/matrix-jwt-service/templates/labels.j2 | 12 ++++++------ .../custom/matrix-livekit-server/templates/labels.j2 | 12 ++++++------ 3 files changed, 18 insertions(+), 18 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 10a84751b..28d7d714a 100644 --- a/roles/custom/matrix-element-call/templates/element-call-labels.j2 +++ b/roles/custom/matrix-element-call/templates/element-call-labels.j2 @@ -20,12 +20,12 @@ traefik.http.middlewares.matrix-element-call-strip-prefix.stripprefix.prefixes={ {% set middlewares = middlewares + ['matrix-element-call-strip-prefix'] %} {% endif %} -{% 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 }} -{% endfor %} -{% set middlewares = middlewares + ['matrix-element-call-add-headers'] %} -{% endif %} +#{% 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 }} +#{% endfor %} +#{% set middlewares = middlewares + ['matrix-element-call-add-headers'] %} +#{% endif %} traefik.http.routers.matrix-element-call.rule={{ matrix_element_call_container_labels_traefik_rule }} {% if matrix_element_call_container_labels_traefik_priority | int > 0 %} diff --git a/roles/custom/matrix-jwt-service/templates/labels.j2 b/roles/custom/matrix-jwt-service/templates/labels.j2 index b547e1952..939c8d4d3 100644 --- a/roles/custom/matrix-jwt-service/templates/labels.j2 +++ b/roles/custom/matrix-jwt-service/templates/labels.j2 @@ -20,12 +20,12 @@ traefik.http.middlewares.matrix-jwt-service-strip-prefix.stripprefix.prefixes={{ {% set middlewares = middlewares + ['matrix-jwt-service-strip-prefix'] %} {% endif %} -{% if matrix_jwt_service_container_labels_traefik_additional_response_headers.keys() | length > 0 %} -{% for name, value in matrix_jwt_service_container_labels_traefik_additional_response_headers.items() %} -traefik.http.middlewares.matrix-jwt-service-add-headers.headers.customresponseheaders.{{ name }}={{ value }} -{% endfor %} -{% set middlewares = middlewares + ['matrix-jwt-service-add-headers'] %} -{% endif %} +#{% if matrix_jwt_service_container_labels_traefik_additional_response_headers.keys() | length > 0 %} +#{% for name, value in matrix_jwt_service_container_labels_traefik_additional_response_headers.items() %} +#traefik.http.middlewares.matrix-jwt-service-add-headers.headers.customresponseheaders.{{ name }}={{ value }} +#{% endfor %} +#{% set middlewares = middlewares + ['matrix-jwt-service-add-headers'] %} +#{% endif %} traefik.http.routers.matrix-jwt-service.rule={{ matrix_jwt_service_container_labels_traefik_rule }} {% if matrix_jwt_service_container_labels_traefik_priority | int > 0 %} diff --git a/roles/custom/matrix-livekit-server/templates/labels.j2 b/roles/custom/matrix-livekit-server/templates/labels.j2 index c41b7ed01..141045f2f 100644 --- a/roles/custom/matrix-livekit-server/templates/labels.j2 +++ b/roles/custom/matrix-livekit-server/templates/labels.j2 @@ -20,12 +20,12 @@ traefik.http.middlewares.matrix-livekit-server-strip-prefix.stripprefix.prefixes {% set middlewares = middlewares + ['matrix-livekit-server-strip-prefix'] %} {% endif %} -{% if matrix_livekit_server_container_labels_traefik_additional_response_headers.keys() | length > 0 %} -{% for name, value in matrix_livekit_server_container_labels_traefik_additional_response_headers.items() %} -traefik.http.middlewares.matrix-livekit-server-add-headers.headers.customresponseheaders.{{ name }}={{ value }} -{% endfor %} -{% set middlewares = middlewares + ['matrix-livekit-server-add-headers'] %} -{% endif %} +#{% if matrix_livekit_server_container_labels_traefik_additional_response_headers.keys() | length > 0 %} +#{% for name, value in matrix_livekit_server_container_labels_traefik_additional_response_headers.items() %} +#traefik.http.middlewares.matrix-livekit-server-add-headers.headers.customresponseheaders.{{ name }}={{ value }} +#{% endfor %} +#{% set middlewares = middlewares + ['matrix-livekit-server-add-headers'] %} +#{% endif %} traefik.http.routers.matrix-livekit-server.rule={{ matrix_livekit_server_container_labels_traefik_rule }} {% if matrix_livekit_server_container_labels_traefik_priority | int > 0 %}