Manage Jitsi configuration by ourselves for most components
We do this for 2 reasons: - so we can control things which are not controllable using environment variables (for example `stunServers` in jitsi/web, since we don't wish to use the hardcoded Google STUN servers if our own Coturn is enabled) - so playbook variable changes will properly rebuild the configuration. When using Jitsi environment variables, the configuration is only built once (the first time) and never rebuilt again. This is not the consistent with the rest of the playbook and with how Ansible operates. We're not perfect at it (yet), because we still let the Jitsi containers generate some files on their own, but we are closer and it should be good enough for most things. Related to #415 (Github Pull Request).
This commit is contained in:
@ -409,20 +409,15 @@ matrix_jitsi_jibri_xmpp_password: "{{ matrix_synapse_macaroon_secret_key | passw
|
||||
matrix_jitsi_jicofo_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jicofo') | to_uuid }}"
|
||||
matrix_jitsi_jvb_auth_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'jvb') | to_uuid }}"
|
||||
|
||||
# TODO. Using our own STUN server fails, so we're using Google's STUN servers (the default for the matrix-jitsi role).
|
||||
#
|
||||
# When using our STUN server, JVB tries to discover its own IP by contacting it and gets a local Docker IP address instead of the external one.
|
||||
# > matrix-jitsi-jvb[30965]: JVB 2020-03-23 14:52:59.253 INFO: [21] org.ice4j.ice.harvest.StunMappingCandidateHarvester.discover() Discovered public address 172.19.0.1:60385/udp from STUN server x.x.x.x:5349/udp using local address 172.18.0.10:0/udp
|
||||
#
|
||||
# matrix_jitsi_jvb_stun_servers: |
|
||||
# {{
|
||||
# [
|
||||
# matrix_server_fqn_matrix + ':5349',
|
||||
# matrix_server_fqn_matrix + ':3478',
|
||||
# ]
|
||||
# if matrix_coturn_enabled
|
||||
# else [ 'stun.l.google.com:19302', 'stun1.l.google.com:19302', 'stun2.l.google.com:19302']
|
||||
# }}
|
||||
matrix_jitsi_web_stun_servers: |
|
||||
{{
|
||||
[
|
||||
matrix_server_fqn_matrix + ':5349',
|
||||
matrix_server_fqn_matrix + ':3478',
|
||||
]
|
||||
if matrix_coturn_enabled
|
||||
else [ 'stun.l.google.com:19302', 'stun1.l.google.com:19302', 'stun2.l.google.com:19302']
|
||||
}}
|
||||
|
||||
######################################################################
|
||||
#
|
||||
|
Reference in New Issue
Block a user