Merge pull request 'Use private IP for ejabberd TURN' (#376) from chore/ejabberd_stun into master
Reviewed-on: #376
This commit is contained in:
commit
bf6a77e41a
|
@ -148,8 +148,8 @@ hosts.each do |host|
|
|||
end
|
||||
|
||||
akkounts_ip_addresses = []
|
||||
search(:node, "role:akkounts").each do |node|
|
||||
akkounts_ip_addresses << node["knife_zero"]["host"]
|
||||
search(:node, "role:akkounts").each do |n|
|
||||
akkounts_ip_addresses << n["knife_zero"]["host"]
|
||||
end
|
||||
|
||||
template "/opt/ejabberd/conf/ejabberd.yml" do
|
||||
|
@ -159,7 +159,7 @@ template "/opt/ejabberd/conf/ejabberd.yml" do
|
|||
variables hosts: hosts,
|
||||
admin_users: admin_users,
|
||||
stun_auth_realm: "kosmos.org",
|
||||
turn_ip_address: node['ipaddress'],
|
||||
turn_ip_address: node["knife_zero"]["host"],
|
||||
turn_min_port: node["kosmos-ejabberd"]["turn_min_port"],
|
||||
turn_max_port: node["kosmos-ejabberd"]["turn_max_port"],
|
||||
akkounts_ip_addresses: akkounts_ip_addresses
|
||||
|
|
Loading…
Reference in New Issue