2024-01-03 16:05:59 +01:00
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_traefik_enabled %}
|
|
|
|
traefik.enable=true
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_traefik_docker_network %}
|
|
|
|
traefik.docker.network={{ matrix_synapse_reverse_proxy_companion_container_labels_traefik_docker_network }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.services.matrix-synapse-reverse-proxy-companion-client-api.loadbalancer.server.port=8008
|
|
|
|
traefik.http.services.matrix-synapse-reverse-proxy-companion-federation-api.loadbalancer.server.port=8048
|
|
|
|
|
|
|
|
|
2024-01-04 09:24:33 +01:00
|
|
|
{#
|
|
|
|
Root path (/)
|
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_root_enabled %}
|
|
|
|
|
|
|
|
{% set client_root_middlewares = [] %}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_root_redirection_enabled %}
|
|
|
|
{% set client_root_middlewares = client_root_middlewares + ['matrix-synapse-reverse-proxy-companion-client-root-redirect'] %}
|
|
|
|
traefik.http.middlewares.matrix-synapse-reverse-proxy-companion-client-root-redirect.redirectregex.regex=(.*)
|
|
|
|
traefik.http.middlewares.matrix-synapse-reverse-proxy-companion-client-root-redirect.redirectregex.replacement={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_redirection_url }}
|
|
|
|
{% else %}
|
|
|
|
{% set client_root_middlewares = client_root_middlewares + ['matrix-synapse-reverse-proxy-companion-client-root-replacepath'] %}
|
|
|
|
traefik.http.middlewares.matrix-synapse-reverse-proxy-companion-client-root-replacepath.replacepath.path=/_matrix/static/
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_rule }}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.middlewares={{ client_root_middlewares | join(',') }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.service=matrix-synapse-reverse-proxy-companion-client-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-root.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_client_root_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/Root path (/)
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
2024-01-03 16:05:59 +01:00
|
|
|
{#
|
2024-01-04 10:37:17 +01:00
|
|
|
Client-API (/_matrix)
|
2024-01-03 16:05:59 +01:00
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_api_enabled %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.service=matrix-synapse-reverse-proxy-companion-client-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_client_api_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
2024-01-04 10:37:17 +01:00
|
|
|
/Client-API (/_matrix)
|
2024-01-03 16:05:59 +01:00
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
{#
|
2024-01-04 10:37:17 +01:00
|
|
|
Synapse Admin API (/_synapse/client)
|
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_enabled %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.service=matrix-synapse-reverse-proxy-companion-client-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_client_api_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/Synapse Admin API (/_synapse/client)
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
{#
|
|
|
|
Synapse OIDC API (/_synapse/oidc)
|
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_enabled %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.service=matrix-synapse-reverse-proxy-companion-client-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_oidc_api_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/Synapse OIDC API (/_synapse/oidc)
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
{#
|
|
|
|
Synapse Admin API (/_synapse/admin)
|
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_enabled %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.service=matrix-synapse-reverse-proxy-companion-client-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-client-api.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_client_synapse_admin_api_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/Synapse Admin API (/_synapse/admin)
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
{#
|
|
|
|
Federation-API (/_matrix)
|
2024-01-03 16:05:59 +01:00
|
|
|
#}
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_federation_api_enabled %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.rule={{ matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.priority={{ matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.service=matrix-synapse-reverse-proxy-companion-federation-api
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.entrypoints={{ matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.tls={{ matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_tls %}
|
|
|
|
traefik.http.routers.matrix-synapse-reverse-proxy-companion-federation-api.tls.certResolver={{ matrix_synapse_reverse_proxy_companion_container_labels_federation_api_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
2024-01-04 10:37:17 +01:00
|
|
|
/Federation-API (/_matrix)
|
2024-01-03 16:05:59 +01:00
|
|
|
#}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_synapse_reverse_proxy_companion_container_labels_additional_labels }}
|