From 1acff756cc67fe6348a2048ee4f4f36a4ee88d72 Mon Sep 17 00:00:00 2001 From: p4u1 Date: Tue, 23 Dec 2025 13:25:15 +0000 Subject: [PATCH] feat: support nextcloud talk high performance backend (#66) This implements the high performance backend for Nextcloud Talk, which is nessecary if it needs to handle more people (video) calling. More Details about it: https://nextcloud-talk.readthedocs.io/en/latest/quick-install/ The current implementation is sadly limited to be used once per host, so this might need some additional love in the future, if someone needs it more flexible. The related Nextcloud PR: coop-cloud/nextcloud#56 Co-authored-by: Apfelwurm Reviewed-on: https://git.coopcloud.tech/coop-cloud/traefik/pulls/66 Co-authored-by: p4u1 Co-committed-by: p4u1 --- .env.sample | 6 +++++- abra.sh | 2 +- compose.nextcloud-talk-hpb.yml | 8 ++++++++ traefik.yml.tmpl | 6 ++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 compose.nextcloud-talk-hpb.yml diff --git a/.env.sample b/.env.sample index bba7a35..dd0745e 100644 --- a/.env.sample +++ b/.env.sample @@ -170,4 +170,8 @@ COMPOSE_FILE="compose.yml" ## Garage #COMPOSE_FILE="$COMPOSE_FILE:compose.garage.yml" -#GARAGE_RPC_ENABLED=1 \ No newline at end of file +#GARAGE_RPC_ENABLED=1 + +## Nextcloud Talk HPB +#COMPOSE_FILE="$COMPOSE_FILE:compose.nextcloud-talk-hpb.yml" +#NEXTCLOUD_TALK_HPB_ENABLED=1 \ No newline at end of file diff --git a/abra.sh b/abra.sh index 2424c21..ef50f0f 100644 --- a/abra.sh +++ b/abra.sh @@ -1,3 +1,3 @@ -export TRAEFIK_YML_VERSION=v27 +export TRAEFIK_YML_VERSION=v28 export FILE_PROVIDER_YML_VERSION=v10 export ENTRYPOINT_VERSION=v5 diff --git a/compose.nextcloud-talk-hpb.yml b/compose.nextcloud-talk-hpb.yml new file mode 100644 index 0000000..7ee4b3e --- /dev/null +++ b/compose.nextcloud-talk-hpb.yml @@ -0,0 +1,8 @@ +version: "3.8" +services: + app: + environment: + - NEXTCLOUD_TALK_HPB_ENABLED + ports: + - "3478:3478/udp" + - "3478:3478/tcp" \ No newline at end of file diff --git a/traefik.yml.tmpl b/traefik.yml.tmpl index cd2ad41..8a9c812 100644 --- a/traefik.yml.tmpl +++ b/traefik.yml.tmpl @@ -105,6 +105,12 @@ entrypoints: matrix-federation: address: ":9001" {{ end }} + {{ if eq (env "NEXTCLOUD_TALK_HPB_ENABLED") "1" }} + nextcloud-talk-hpb: + address: ":3478" + nextcloud-talk-hpb-udp: + address: ":3478/udp" + {{ end }} ping: entryPoint: web