mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-17 23:36:41 +00:00
ace4edb01b
Part of adopting a uniform naming policy for bridge variables, where the variable prefix matches the role directory name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
51 lines
2.4 KiB
Django/Jinja
51 lines
2.4 KiB
Django/Jinja
{#
|
|
SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#}
|
|
|
|
{% if matrix_bridge_mautrix_slack_container_labels_traefik_enabled %}
|
|
traefik.enable=true
|
|
|
|
{% if matrix_bridge_mautrix_slack_container_labels_traefik_docker_network %}
|
|
traefik.docker.network={{ matrix_bridge_mautrix_slack_container_labels_traefik_docker_network }}
|
|
{% endif %}
|
|
|
|
{% if matrix_bridge_mautrix_slack_container_labels_exposure_enabled %}
|
|
############################################################
|
|
# #
|
|
# Bridge API exposure #
|
|
# #
|
|
############################################################
|
|
|
|
traefik.http.services.matrix-mautrix-slack-exposure.loadbalancer.server.port=8080
|
|
|
|
traefik.http.middlewares.matrix-mautrix-slack-exposure-strip-prefix.stripprefix.prefixes={{ matrix_bridge_mautrix_slack_exposure_path_prefix }}
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.middlewares=matrix-mautrix-slack-exposure-strip-prefix
|
|
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.rule={{ matrix_bridge_mautrix_slack_container_labels_exposure_traefik_rule }}
|
|
|
|
{% if matrix_bridge_mautrix_slack_container_labels_exposure_traefik_priority | int > 0 %}
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.priority={{ matrix_bridge_mautrix_slack_container_labels_exposure_traefik_priority }}
|
|
{% endif %}
|
|
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.service=matrix-mautrix-slack-exposure
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.entrypoints={{ matrix_bridge_mautrix_slack_container_labels_exposure_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.tls={{ matrix_bridge_mautrix_slack_container_labels_exposure_traefik_tls | to_json }}
|
|
{% if matrix_bridge_mautrix_slack_container_labels_exposure_traefik_tls %}
|
|
traefik.http.routers.matrix-mautrix-slack-exposure.tls.certResolver={{ matrix_bridge_mautrix_slack_container_labels_exposure_traefik_tls_certResolver }}
|
|
{% endif %}
|
|
|
|
############################################################
|
|
# #
|
|
# /Bridge API exposure #
|
|
# #
|
|
############################################################
|
|
{% endif %}
|
|
|
|
|
|
{% endif %}
|
|
|
|
{{ matrix_bridge_mautrix_slack_container_labels_additional_labels }}
|