mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-16 19:53:53 +03:00
d9bee18ddd
Part of adopting a uniform naming policy for bridge variables, where the variable prefix matches the role directory name. The companion appservice variables defined by this role are folded under the role prefix as well: matrix_mautrix_androidsms_* becomes matrix_bridge_mautrix_wsproxy_androidsms_* and matrix_mautrix_imessage_* becomes matrix_bridge_mautrix_wsproxy_imessage_*. matrix_mautrix_signal_wsproxy_syncproxy_connection_string becomes matrix_bridge_mautrix_wsproxy_syncproxy_connection_string, aligning it with the sibling matrix_bridge_mautrix_wsproxy_syncproxy_* variables. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
41 lines
2.0 KiB
Django/Jinja
41 lines
2.0 KiB
Django/Jinja
{#
|
|
SPDX-FileCopyrightText: 2023 Johan Swetzén
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#}
|
|
|
|
{% if matrix_bridge_mautrix_wsproxy_container_labels_traefik_enabled %}
|
|
traefik.enable=true
|
|
|
|
{% if matrix_bridge_mautrix_wsproxy_container_labels_traefik_docker_network %}
|
|
traefik.docker.network={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_docker_network }}
|
|
{% endif %}
|
|
|
|
{% set middlewares = [] %}
|
|
|
|
{% if matrix_bridge_mautrix_wsproxy_container_labels_traefik_additional_response_headers.keys() | length > 0 %}
|
|
{% for name, value in matrix_bridge_mautrix_wsproxy_container_labels_traefik_additional_response_headers.items() %}
|
|
traefik.http.middlewares.matrix-mautrix-wsproxy-add-headers.headers.customresponseheaders.{{ name }}={{ value }}
|
|
{% endfor %}
|
|
{% set middlewares = middlewares + ['matrix-mautrix-wsproxy-add-headers'] %}
|
|
{% endif %}
|
|
|
|
traefik.http.routers.matrix-mautrix-wsproxy.rule={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_rule }}
|
|
{% if matrix_bridge_mautrix_wsproxy_container_labels_traefik_priority | int > 0 %}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.priority={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_priority }}
|
|
{% endif %}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.service=matrix-mautrix-wsproxy
|
|
{% if middlewares | length > 0 %}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.middlewares={{ middlewares | join(',') }}
|
|
{% endif %}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.entrypoints={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_entrypoints }}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.tls={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_tls | to_json }}
|
|
{% if matrix_bridge_mautrix_wsproxy_container_labels_traefik_tls %}
|
|
traefik.http.routers.matrix-mautrix-wsproxy.tls.certResolver={{ matrix_bridge_mautrix_wsproxy_container_labels_traefik_tls_certResolver }}
|
|
{% endif %}
|
|
|
|
traefik.http.services.matrix-mautrix-wsproxy.loadbalancer.server.port={{ matrix_bridge_mautrix_wsproxy_port }}
|
|
{% endif %}
|
|
|
|
{{ matrix_bridge_mautrix_wsproxy_container_labels_additional_labels }}
|