From 9ad2f38d254b01611e874ac5aa8cddaf5aa28732 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 6 Jul 2025 19:57:44 +0100 Subject: Share turnserver between vhosts on same machine I made a mistake in the original configuration - I tried to give each virtual host a separate turnserver on its own subdomain. However, since koyo.haus and fennell.dev (and likewise in nonprod) share a virtual machine, they can only have one turnserver between them (in the turnserver.conf, there can only be a single realm). Therefore, always point to koyo.haus for the turnserver in each environment. --- files/turnserver.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'files/turnserver.conf.j2') diff --git a/files/turnserver.conf.j2 b/files/turnserver.conf.j2 index 05c956c..f90f0f0 100644 --- a/files/turnserver.conf.j2 +++ b/files/turnserver.conf.j2 @@ -6,6 +6,7 @@ syslog no-rfc5780 no-stun-backward-compatibility response-origin-only-with-rfc5780 -realm=turn.{{ virtual_host }} +realm={{ turn_server }} use-auth-secret static-auth-secret={{ turn_secret }} +external-ip={{ ipv4 }} -- cgit v1.2.3