2024-01-07 10:48:30 +00: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 %}
|
|
|
|
|
|
|
|
{#
|
|
|
|
Start of public
|
|
|
|
#}
|
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_enabled %}
|
|
|
|
traefik.http.middlewares.matrix-appservice-webhooks-public-strip-prefix.stripprefix.prefixes={{ matrix_appservice_webhooks_container_labels_public_endpoint_prefix }}
|
|
|
|
|
2024-01-11 10:35:30 +00: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 10:48:30 +00:00
|
|
|
|
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority | int > 0 %}
|
2024-01-11 10:35:30 +00:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.priority={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority }}
|
2024-01-07 10:48:30 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-11 10:35:30 +00: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 10:48:30 +00:00
|
|
|
|
2024-01-11 10:35:30 +00:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.tls={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls | to_json }}
|
2024-01-07 10:48:30 +00:00
|
|
|
{% if matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls %}
|
2024-01-11 10:35:30 +00:00
|
|
|
traefik.http.routers.matrix-appservice-webhooks-public.tls.certResolver={{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls_certResolver }}
|
2024-01-07 10:48:30 +00:00
|
|
|
{% endif %}
|
|
|
|
traefik.http.services.matrix-appservice-webhooks.loadbalancer.server.port={{ matrix_appservice_webhooks_matrix_port }}
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/End of public
|
|
|
|
#}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_appservice_webhooks_container_labels_additional_labels }}
|