Skip to content

Commit

Permalink
Improvement: added a variable type list to manage STUN servers
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagomr committed Apr 3, 2020
1 parent 5ef3a9b commit d53ea9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jitsi_meet_install_recommends: no
# If (jitsi_meet_install_recommends == no), there won't be turnserver installed and available
jitsi_meet_use_stun_turn: 'false'

# The STUN servers that will be used in the peer to peer connections
jitsi_meet_stun_servers:
- 'stun:meet-jit-si-turnrelay.jitsi.net:443'
# - 'stun:{{ jitsi_meet_server_name }}:443'

# Configure nginx and jitsi-meet to listening also IPv6
jitsi_meet_ipv6_enable: true

Expand Down
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jitsi_meet_install_recommends: no
# If (jitsi_meet_install_recommends == no), there won't be turnserver installed and available
jitsi_meet_use_stun_turn: 'false'

# The STUN servers that will be used in the peer to peer connections
jitsi_meet_stun_servers:
- 'stun:meet-jit-si-turnrelay.jitsi.net:443'
# - 'stun:{{ jitsi_meet_server_name }}:443'

# Configure nginx and jitsi-meet to listening also IPv6
jitsi_meet_ipv6_enable: true

Expand Down
6 changes: 4 additions & 2 deletions templates/jitsi_meet_config.js.j2
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,10 @@ var config = {
// The STUN servers that will be used in the peer to peer connections
stunServers: [

// { urls: 'stun:{{ jitsi_meet_server_name }}:443' },
{ urls: 'stun:meet-jit-si-turnrelay.jitsi.net:443' }
{% for stun_server in jitsi_meet_stun_servers %}
{ urls: '{{ stun_server }}' },
{% endfor %}

],

// Sets the ICE transport policy for the p2p connection. At the time
Expand Down

0 comments on commit d53ea9b

Please sign in to comment.