From e2eac5e5e0cc67e62a07ee4f1018f51ae15c7edb Mon Sep 17 00:00:00 2001 From: uumas Date: Sat, 18 Dec 2021 17:15:11 +0200 Subject: [PATCH] update jitsi --- galaxy.yml | 2 +- roles/jitsi/tasks/main.yml | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index db25819..77b2746 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -2,7 +2,7 @@ namespace: uumas name: docker -version: 0.3.0 +version: 0.3.1 readme: README.md repository: https://git.uumas.fi/uumas/ansible-docker license_file: LICENSE diff --git a/roles/jitsi/tasks/main.yml b/roles/jitsi/tasks/main.yml index 7dfa75d..6a464ea 100644 --- a/roles/jitsi/tasks/main.yml +++ b/roles/jitsi/tasks/main.yml @@ -11,7 +11,7 @@ pull: true container_default_behavior: no_defaults published_ports: - - "{{ localhost_ip }}:{{ ports.jitsi_http }}:80" + - "127.0.0.1:{{ ports.jitsi_http }}:80" env: DISABLE_HTTPS: '1' PUBLIC_URL: "{{ jitsi_external_url }}" @@ -19,7 +19,7 @@ ENABLE_PREJOIN_PAGE: '1' ENABLE_REQUIRE_DISPLAY_NAME: '1' ENABLE_NOISY_MIC_DETECTION: '0' - ENABLE_RECORDING: '0' + ENABLE_BREAKOUT_ROOMS: '1' JICOFO_AUTH_USER: focus XMPP_BOSH_URL_BASE: 'http://xmpp.meet.jitsi:5280' XMPP_DOMAIN: meet.jitsi @@ -30,6 +30,20 @@ - name: meet.jitsi aliases: - meet.jitsi + register: jitsi_meet_web_out + +- set_fact: + jitsi_meet_web_config_volume: "{{ jitsi_meet_web_out.container.Mounts | selectattr('Destination', 'equalto', '/config') | join }}" + +- name: Disable recording and livestreaming + lineinfile: + path: "{{ jitsi_meet_web_config_volume.Source }}/config.js" + regexp: "^ (\/\/ )?{{ item }}: .*,$" + line: " {{ item }}: false," + state: present + loop: + - fileRecordingsEnabled + - liveStreamingEnabled - name: Jitsi meet prosody docker_container: @@ -41,7 +55,7 @@ PUBLIC_URL: "{{ jitsi_external_url }}" TZ: "{{ timezone }}" ENABLE_LOBBY: '1' - JICOFO_COMPONENT_SECRET: "{{ jitsi_pw.jicofo_component }}" + ENABLE_BREAKOUT_ROOMS: '1' JICOFO_AUTH_USER: focus JICOFO_AUTH_PASSWORD: "{{ jitsi_pw.jicofo_auth }}" JVB_AUTH_USER: jvb @@ -68,7 +82,6 @@ env: TZ: "{{ timezone }}" JVB_BREWERY_MUC: jvbbrewery - JICOFO_COMPONENT_SECRET: "{{ jitsi_pw.jicofo_component }}" JICOFO_AUTH_USER: focus JICOFO_AUTH_PASSWORD: "{{ jitsi_pw.jicofo_auth }}" XMPP_DOMAIN: meet.jitsi @@ -117,7 +130,7 @@ marker: "# {mark} ANSIBLE MANAGED BLOCK jitsi" block: | {{ jitsi_external_url }} { - reverse_proxy http://{{ localhost_ip }}:{{ ports.jitsi_http }} + reverse_proxy http://127.0.0.1:{{ ports.jitsi_http }} } validate: 'caddy validate --config %s --adapter caddyfile' backup: true