Explicitly configure STUN/TURN service discovery

It didn't return any services without the explicit config.
This commit is contained in:
Basti 2020-05-02 14:30:36 +02:00
parent 4448ec2173
commit 3a37cade0e
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67
2 changed files with 15 additions and 3 deletions

View File

@ -156,7 +156,6 @@ template "/opt/ejabberd/conf/ejabberd.yml" do
hosts: hosts,
admin_users: admin_users,
stun_auth_realm: "kosmos.org",
turn_ip_address: node['ipaddress'],
turn_min_port: node["kosmos-ejabberd"]["turn_min_port"],
turn_max_port: node["kosmos-ejabberd"]["turn_max_port"]
notifies :run, "execute[ejabberdctl reload_config]", :delayed

View File

@ -80,7 +80,7 @@ listen:
module: ejabberd_stun
auth_realm: <%= @stun_auth_realm %>
use_turn: true
turn_ip: <%= @turn_ip_address %>
turn_ip: <%= node['ipaddress'] %>
turn_min_port: <%= @turn_min_port %>
turn_max_port: <%= @turn_max_port %>
@ -223,7 +223,20 @@ modules:
versioning: true
store_current_id: true
mod_shared_roster: {}
mod_stun_disco: {}
mod_stun_disco:
services:
-
host: <%= node['ipaddress'] %>
port: 3478
type: stun
transport: udp
restricted: false
-
host: <%= node['ipaddress'] %>
port: 3478
type: turn
transport: udp
restricted: true
mod_vcard:
search: false
mod_vcard_xupdate: {}