diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-01-18 17:32:45 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-01-18 17:33:29 +0100 |
commit | ccfe0921edb6d81ccf53135654fd364eea679140 (patch) | |
tree | bf3e9e97afad41b7437ed0be1cd1d1a82eecd9be /ejabberd/config.d/stun-turns.yml | |
parent | 8d7a52d331eee26c44ee8ac68a72b0b2fe0a0750 (diff) |
Add ejabberd tweaks as snippets.
Diffstat (limited to 'ejabberd/config.d/stun-turns.yml')
-rw-r--r-- | ejabberd/config.d/stun-turns.yml | 36 |
1 files changed, 36 insertions, 0 deletions
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' |