From 43c8116106b2ef970955e89c2e128f03f86e9f90 Mon Sep 17 00:00:00 2001
From: Michael Jerger <michael.jerger@meissa-gmbh.de>
Date: Sat, 1 Mar 2025 10:27:53 +0100
Subject: [PATCH] disable turn

---
 src/main/cljc/dda/c4k_jitsi/jitsi.cljc                 | 3 +--
 src/main/resources/jitsi/prosody-config-common-cm.yaml | 2 --
 src/test/cljc/dda/c4k_jitsi/jitsi_test.cljc            | 4 +---
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/main/cljc/dda/c4k_jitsi/jitsi.cljc b/src/main/cljc/dda/c4k_jitsi/jitsi.cljc
index 5048583..b8ea4b6 100644
--- a/src/main/cljc/dda/c4k_jitsi/jitsi.cljc
+++ b/src/main/cljc/dda/c4k_jitsi/jitsi.cljc
@@ -41,8 +41,7 @@
      (->
       (load-and-adjust-namespace "jitsi/prosody-config-common-cm.yaml" namespace)
       (cm/replace-all-matching "JITSI_FQDN" fqdn)
-      (cm/replace-key-value :STUN_HOST (str "stun." fqdn))
-      (cm/replace-key-value :TURN_HOST (str "stun." fqdn)))
+      (cm/replace-key-value :STUN_HOST (str "stun." fqdn)))
      (load-and-adjust-namespace "jitsi/prosody-config-default-cm.yaml" namespace)
      (load-and-adjust-namespace "jitsi/prosody-config-envs-cm.yaml" namespace)
      (load-and-adjust-namespace "jitsi/prosody-config-init-cm.yaml" namespace)
diff --git a/src/main/resources/jitsi/prosody-config-common-cm.yaml b/src/main/resources/jitsi/prosody-config-common-cm.yaml
index ea47cc1..98aed92 100644
--- a/src/main/resources/jitsi/prosody-config-common-cm.yaml
+++ b/src/main/resources/jitsi/prosody-config-common-cm.yaml
@@ -25,5 +25,3 @@ data:
   TZ: 'Europe/Berlin'
   STUN_HOST: STUN_FQDN
   STUN_PORT: "443"
-  TURN_HOST: STUN_FQDN
-  TURN_PORT: "443"
\ No newline at end of file
diff --git a/src/test/cljc/dda/c4k_jitsi/jitsi_test.cljc b/src/test/cljc/dda/c4k_jitsi/jitsi_test.cljc
index 4158399..65c40ea 100644
--- a/src/test/cljc/dda/c4k_jitsi/jitsi_test.cljc
+++ b/src/test/cljc/dda/c4k_jitsi/jitsi_test.cljc
@@ -49,9 +49,7 @@
            :ENABLE_FILE_RECORDING_SERVICE_SHARING "true",
            :TZ "Europe/Berlin"
            :STUN_HOST "stun.xy.xy.xy",
-           :STUN_PORT "443",
-           :TURN_HOST "stun.xy.xy.xy",
-           :TURN_PORT "443"}}
+           :STUN_PORT "443"}}
          (second (cut/prosody-config
                   {:fqdn "xy.xy.xy"
                    :namespace "jitsi"}))))