2024-01-11 06:56:51 +00:00
|
|
|
{% if matrix_conduit_container_labels_traefik_enabled %}
|
|
|
|
traefik.enable=true
|
|
|
|
|
|
|
|
{% if matrix_conduit_container_labels_traefik_docker_network %}
|
|
|
|
traefik.docker.network={{ matrix_conduit_container_labels_traefik_docker_network }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.services.matrix-conduit.loadbalancer.server.port={{ matrix_conduit_port_number }}
|
|
|
|
|
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_root_enabled %}
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Public Root path (/) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
|
|
|
|
{% set client_root_middlewares = [] %}
|
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_root_redirection_enabled %}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% set client_root_middlewares = client_root_middlewares + ['matrix-conduit-client-root-redirect'] %}
|
|
|
|
traefik.http.middlewares.matrix-conduit-client-root-redirect.redirectregex.regex=(.*)
|
2024-01-14 08:29:38 +00:00
|
|
|
traefik.http.middlewares.matrix-conduit-client-root-redirect.redirectregex.replacement={{ matrix_conduit_container_labels_public_client_root_redirection_url }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.rule={{ matrix_conduit_container_labels_public_client_root_traefik_rule }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.middlewares={{ client_root_middlewares | join(',') }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_root_traefik_priority | int > 0 %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.priority={{ matrix_conduit_container_labels_public_client_root_traefik_priority }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.service=matrix-conduit
|
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.entrypoints={{ matrix_conduit_container_labels_public_client_root_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.tls={{ matrix_conduit_container_labels_public_client_root_traefik_tls | to_json }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_root_traefik_tls %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-root.tls.certResolver={{ matrix_conduit_container_labels_public_client_root_traefik_tls_certResolver }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Public Root path (/) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_api_enabled %}
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Public Client-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.rule={{ matrix_conduit_container_labels_public_client_api_traefik_rule }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_api_traefik_priority | int > 0 %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.priority={{ matrix_conduit_container_labels_public_client_api_traefik_priority }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.service=matrix-conduit
|
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.entrypoints={{ matrix_conduit_container_labels_public_client_api_traefik_entrypoints }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.tls={{ matrix_conduit_container_labels_public_client_api_traefik_tls | to_json }}
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_client_api_traefik_tls %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-client-api.tls.certResolver={{ matrix_conduit_container_labels_public_client_api_traefik_tls_certResolver }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Public Client-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
{% if matrix_conduit_container_labels_internal_client_api_enabled %}
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Internal Client-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-14 08:40:46 +00:00
|
|
|
|
2024-04-21 01:47:00 +00:00
|
|
|
traefik.http.routers.matrix-conduit-internal-client-api.rule={{ matrix_conduit_container_labels_internal_client_api_traefik_rule }}
|
2024-01-14 08:40:46 +00:00
|
|
|
|
|
|
|
{% if matrix_conduit_container_labels_internal_client_api_traefik_priority | int > 0 %}
|
2024-04-21 01:47:00 +00:00
|
|
|
traefik.http.routers.matrix-conduit-internal-client-api.priority={{ matrix_conduit_container_labels_internal_client_api_traefik_priority }}
|
2024-01-14 08:40:46 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-04-21 01:47:00 +00:00
|
|
|
traefik.http.routers.matrix-conduit-internal-client-api.service=matrix-conduit
|
|
|
|
traefik.http.routers.matrix-conduit-internal-client-api.entrypoints={{ matrix_conduit_container_labels_internal_client_api_traefik_entrypoints }}
|
2024-01-14 08:40:46 +00:00
|
|
|
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Internal Client-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-14 08:40:46 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_federation_api_enabled %}
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Public Federation-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.rule={{ matrix_conduit_container_labels_public_federation_api_traefik_rule }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_federation_api_traefik_priority | int > 0 %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.priority={{ matrix_conduit_container_labels_public_federation_api_traefik_priority }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.service=matrix-conduit
|
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.entrypoints={{ matrix_conduit_container_labels_public_federation_api_traefik_entrypoints }}
|
2024-01-11 06:56:51 +00:00
|
|
|
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.tls={{ matrix_conduit_container_labels_public_federation_api_traefik_tls | to_json }}
|
2024-01-14 08:29:38 +00:00
|
|
|
{% if matrix_conduit_container_labels_public_federation_api_traefik_tls %}
|
2024-01-14 08:40:46 +00:00
|
|
|
traefik.http.routers.matrix-conduit-public-federation-api.tls.certResolver={{ matrix_conduit_container_labels_public_federation_api_traefik_tls_certResolver }}
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-15 08:41:15 +00:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Public Federation-API (/_matrix) #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-11 06:56:51 +00:00
|
|
|
{% endif %}
|
2024-01-15 08:41:15 +00:00
|
|
|
|
2024-01-11 06:56:51 +00:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_conduit_container_labels_additional_labels }}
|