added header flags back in.

This commit is contained in:
wjbeckett
2024-10-01 17:04:11 +10:00
parent 6c8923ae28
commit 2b4fdea70f
6 changed files with 78 additions and 78 deletions

View File

@ -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 %}