Fix Jitsi Meet

This commit is contained in:
Sam A. 2024-05-15 21:24:30 +02:00
parent 3d7dbd1bc7
commit 03da7b06ef
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 10 additions and 5 deletions

View file

@ -4,6 +4,9 @@
hostname: "{{ inventory_hostname }}" hostname: "{{ inventory_hostname }}"
timezone: Europe/Copenhagen timezone: Europe/Copenhagen
home_ipv4: 46.32.144.131
home_ipv6: 2a06:4001:f02a::/48
users: users:
- name: lab_admin - name: lab_admin
comment: System administrator comment: System administrator

View file

@ -59,8 +59,10 @@ services:
restart: always restart: always
environment: environment:
JVB_AUTH_PASSWORD: {{ jitsi_passwords.jvb_auth }} JVB_AUTH_PASSWORD: {{ jitsi_passwords.jvb_auth }}
JVB_WS_DOMAIN: {{ apps_vars.jitsi.domain }} PUBLIC_URL: {{ apps_vars.jitsi.domain }}
{% if hostname not in groups['production'] %} {% if hostname in groups['production'] %}
JVB_ADVERTISE_IPS: {{ home_ipv4 }},{{ ansible_default_ipv6.address }}
{% else %}
JVB_ADVERTISE_IPS: {{ ansible_host }} JVB_ADVERTISE_IPS: {{ ansible_host }}
{% endif %} {% endif %}
networks: networks:

View file

@ -19,7 +19,7 @@ server {
proxy_set_header X-Forwarded-Proto "https"; proxy_set_header X-Forwarded-Proto "https";
} }
location ~^/(colibri-ws|xmpp-websocket)$ { location ~^/(colibri-ws|xmpp-websocket) {
proxy_pass $upstream; proxy_pass $upstream;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -19,8 +19,8 @@
permanent: true permanent: true
state: enabled state: enabled
loop: loop:
- '46.32.144.131' - "{{ home_ipv4 }}"
- '2a06:4001:f02a::/48' - "{{ home_ipv6 }}"
when: instance_type == 'vps' when: instance_type == 'vps'
- name: Move internal network to zone 'internal' - name: Move internal network to zone 'internal'