summaryrefslogtreecommitdiff
path: root/ejabberd/config.d/stuns-turns.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ejabberd/config.d/stuns-turns.yml')
-rw-r--r--ejabberd/config.d/stuns-turns.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/ejabberd/config.d/stuns-turns.yml b/ejabberd/config.d/stuns-turns.yml
new file mode 100644
index 0000000..a8e5e7a
--- /dev/null
+++ b/ejabberd/config.d/stuns-turns.yml
@@ -0,0 +1,25 @@
+# STUN/TURN services (secure authenticated)
+#
+# * TURN_IP must be the public IP of the listening port
+# * TURN relay requires authentication
+# * _tls proto (in DNS below) is nonstandard but maybe used in the wild
+# * stuns service (in DNS below) is legacy but maybe used in the wild
+#
+# Sample DNS entries:
+# @ IN NAPTR 10 0 "s" "RELAY:turn.tls" "" stun
+# stun IN A 192.0.2.1
+# _stuns._tcp IN SRV 0 0 5349 stun
+# _stun._tls IN SRV 0 0 5349 stun
+# _turns._tcp IN SRV 0 0 5349 stun
+# _turn._tls IN SRV 0 0 5349 stun
+#
+# Depends: erlang-p1-stun
+
+listen:
+ -
+ port: 5349
+ module: ejabberd_stun
+ tls: true
+ certfile: 'CERT_PATH'
+ auth_type: user
+ turn_ip: 'TURN_IP'