2024-01-07 11:48:30 +01:00
|
|
|
{% if matrix_appservice_webhooks_container_labels_traefik_enabled %}
|
|
|
|
traefik.enable=true
|
|
|
|
|
|
|
|
{% if matrix_appservice_webhooks_container_labels_traefik_docker_network %}
|
|
|
|
traefik.docker.network={{ matrix_appservice_webhooks_container_labels_traefik_docker_network }}
|
|
|
|
{% endif %}
|
|
|
|
|
2024-01-15 09:41:15 +01:00
|
|
|
traefik.http.services.matrix-appservice-webhooks.loadbalancer.server.port={{ matrix_appservice_webhooks_matrix_port }}
|
|
|
|
|
2024-01-07 11:48:30 +01:00
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_enabled %}
|
2024-01-15 09:41:15 +01:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Public #
|
|
|
|
# #
|
|
|
|
############################################################
|
|
|
|
|
2024-01-07 11:48:30 +01:00
|
|
|
traefik.http.middlewares.matrix-appservice-webhooks-public-strip-prefix.stripprefix.prefixes={{ matrix_appservice_webhooks_container_labels_public_endpoint_prefix }}
|
|
|
|
|
2024-01-11 11:35:30 +01:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.rule={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_rule }}
|
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.middlewares=matrix-appservice-webhooks-public-strip-prefix
|
2024-01-07 11:48:30 +01:00
|
|
|
|
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority | int > 0 %}
|
2024-01-11 11:35:30 +01:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.priority={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority }}
|
2024-01-07 11:48:30 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-11 11:35:30 +01:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.service=matrix-appservice-webhooks
|
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.entrypoints={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints }}
|
2024-01-07 11:48:30 +01:00
|
|
|
|
2024-01-11 11:35:30 +01:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.tls={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls | to_json }}
|
2024-01-07 11:48:30 +01:00
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls %}
|
2024-01-11 11:35:30 +01:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.tls.certResolver={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls_certResolver }}
|
2024-01-07 11:48:30 +01:00
|
|
|
{% endif %}
|
2024-01-15 09:41:15 +01:00
|
|
|
|
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Public #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-07 11:48:30 +01:00
|
|
|
{% endif %}
|
2024-01-15 09:41:15 +01:00
|
|
|
|
2024-01-07 11:48:30 +01:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_appservice_webhooks_container_labels_additional_labels }}
|