Explicitly configure STUN/TURN service discovery
It didn't return any services without the explicit config.
This commit is contained in:
parent
4448ec2173
commit
3a37cade0e
@ -156,7 +156,6 @@ template "/opt/ejabberd/conf/ejabberd.yml" do
|
|||||||
hosts: hosts,
|
hosts: hosts,
|
||||||
admin_users: admin_users,
|
admin_users: admin_users,
|
||||||
stun_auth_realm: "kosmos.org",
|
stun_auth_realm: "kosmos.org",
|
||||||
turn_ip_address: node['ipaddress'],
|
|
||||||
turn_min_port: node["kosmos-ejabberd"]["turn_min_port"],
|
turn_min_port: node["kosmos-ejabberd"]["turn_min_port"],
|
||||||
turn_max_port: node["kosmos-ejabberd"]["turn_max_port"]
|
turn_max_port: node["kosmos-ejabberd"]["turn_max_port"]
|
||||||
notifies :run, "execute[ejabberdctl reload_config]", :delayed
|
notifies :run, "execute[ejabberdctl reload_config]", :delayed
|
||||||
|
|||||||
@ -80,7 +80,7 @@ listen:
|
|||||||
module: ejabberd_stun
|
module: ejabberd_stun
|
||||||
auth_realm: <%= @stun_auth_realm %>
|
auth_realm: <%= @stun_auth_realm %>
|
||||||
use_turn: true
|
use_turn: true
|
||||||
turn_ip: <%= @turn_ip_address %>
|
turn_ip: <%= node['ipaddress'] %>
|
||||||
turn_min_port: <%= @turn_min_port %>
|
turn_min_port: <%= @turn_min_port %>
|
||||||
turn_max_port: <%= @turn_max_port %>
|
turn_max_port: <%= @turn_max_port %>
|
||||||
|
|
||||||
@ -223,7 +223,20 @@ modules:
|
|||||||
versioning: true
|
versioning: true
|
||||||
store_current_id: true
|
store_current_id: true
|
||||||
mod_shared_roster: {}
|
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:
|
mod_vcard:
|
||||||
search: false
|
search: false
|
||||||
mod_vcard_xupdate: {}
|
mod_vcard_xupdate: {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user