From 2cf471075db355f6df66ffb188424425be1c8981 Mon Sep 17 00:00:00 2001 From: Backslash Date: Fri, 27 Sep 2024 08:09:32 +1000 Subject: [PATCH] Created livekit-labels.j2 --- .../matrix-element-call/templates/livekit-labels.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/custom/matrix-element-call/templates/livekit-labels.j2 diff --git a/roles/custom/matrix-element-call/templates/livekit-labels.j2 b/roles/custom/matrix-element-call/templates/livekit-labels.j2 new file mode 100644 index 000000000..df680b2a7 --- /dev/null +++ b/roles/custom/matrix-element-call/templates/livekit-labels.j2 @@ -0,0 +1,13 @@ +{% if matrix_element_call_container_labels_traefik_enabled %} +traefik.enable=true + +{% if matrix_element_call_container_labels_traefik_docker_network %} +traefik.docker.network={{ matrix_element_call_container_labels_traefik_docker_network }} +{% endif %} + +# Define the Traefik router rule for LiveKit +traefik.http.routers.livekit-router.rule=Host(`{{ matrix_element_call_sfu_hostname }}`) +traefik.http.routers.livekit-router.entrypoints={{ matrix_element_call_container_labels_traefik_entrypoints }} +traefik.http.routers.livekit-router.tls.certresolver={{ matrix_element_call_container_labels_traefik_tls_certResolver }} +traefik.http.services.livekit-service.loadbalancer.server.port=7880 +{% endif %}