Support audio/video calls for Kosmos XMPP accounts #161

Merged
raucao merged 2 commits from feature/159-ejabberd_stun_turn into master 2020-05-02 10:01:19 +00:00
3 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,5 @@
node.default["kosmos-ejabberd"]["version"] = "20.03" node.default["kosmos-ejabberd"]["version"] = "20.04"
node.default["kosmos-ejabberd"]["checksum"] = "f0ccf1c47c3a30303140f08c887998ee34e731f34ea240d56748a68aa2a2e303" node.default["kosmos-ejabberd"]["checksum"] = "5377ff18960a399e661fa23f4a1d9f57c78d4579ed108c52b8f68e7cd9268868"
node.override["tor"]["HiddenServices"]["ejabberd"] = { node.override["tor"]["HiddenServices"]["ejabberd"] = {
"HiddenServicePorts" => [ "HiddenServicePorts" => [

View File

@ -200,6 +200,12 @@ unless node.chef_environment == "development"
protocol :tcp protocol :tcp
command :allow command :allow
end end
firewall_rule 'ejabberd_stun_turn' do
port 3478
protocol :udp
command :allow
end
end end
# #

View File

@ -74,6 +74,13 @@ listen:
## "/pub/archive": mod_http_fileserver ## "/pub/archive": mod_http_fileserver
## register: true ## register: true
captcha: false captcha: false
-
port: 3478
transport: udp
module: ejabberd_stun
use_turn: true
## The server's public IPv4 address:
# turn_ip: 203.0.113.3
Review

Left this in here, in case we see it breaking without it. (From the new ejabberd example config.)

Left this in here, in case we see it breaking without it. (From the new ejabberd example config.)
s2s_use_starttls: optional s2s_use_starttls: optional
@ -214,6 +221,7 @@ modules:
versioning: true versioning: true
store_current_id: true store_current_id: true
mod_shared_roster: {} mod_shared_roster: {}
mod_stun_disco: {}
mod_vcard: mod_vcard:
search: false search: false
mod_vcard_xupdate: {} mod_vcard_xupdate: {}