From ccfe0921edb6d81ccf53135654fd364eea679140 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 18 Jan 2017 17:32:45 +0100 Subject: Add ejabberd tweaks as snippets. --- ejabberd/config.d/stun-turns.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ejabberd/config.d/stun-turns.yml (limited to 'ejabberd/config.d/stun-turns.yml') diff --git a/ejabberd/config.d/stun-turns.yml b/ejabberd/config.d/stun-turns.yml new file mode 100644 index 0000000..eeef731 --- /dev/null +++ b/ejabberd/config.d/stun-turns.yml @@ -0,0 +1,36 @@ +# STUN/TURN services (insecure STUN + secure authenticated STUN/TURN) +# +# * 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 +# _stun._udp IN SRV 0 0 3478 stun +# _stun._tcp IN SRV 0 0 3478 stun +# _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: 3478 + transport: udp + module: ejabberd_stun + use_turn: false + - + port: 3478 + module: ejabberd_stun + use_turn: false + - + port: 5349 + module: ejabberd_stun + tls: true + certfile: 'CERT_PATH' + auth_type: user + turn_ip: 'TURN_IP' -- cgit v1.2.3