Do not assume the jitsi_jvb_servers group is defined in everyone's inventory

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2842
This commit is contained in:
Slavi Pantaleev 2023-08-25 15:50:10 +03:00
parent a036987ba4
commit 4873b18000

View File

@ -53,7 +53,7 @@
tcp_nodelay on; tcp_nodelay on;
} }
{% for host in groups['jitsi_jvb_servers'] %} {% for host in groups['jitsi_jvb_servers'] | default([]) %}
# colibri (JVB) websockets for additional JVBs # colibri (JVB) websockets for additional JVBs
location ~ ^/colibri-ws/{{ hostvars[host]['jitsi_jvb_server_id'] | regex_escape }}/(.*) { location ~ ^/colibri-ws/{{ hostvars[host]['jitsi_jvb_server_id'] | regex_escape }}/(.*) {
proxy_pass http://{{ host }}:9090/colibri-ws/{{ hostvars[host]['jitsi_jvb_server_id'] }}/$1$is_args$args; proxy_pass http://{{ host }}:9090/colibri-ws/{{ hostvars[host]['jitsi_jvb_server_id'] }}/$1$is_args$args;