From d4f08c82685f9f00dc7da82f207eaa108a2ef9c1 Mon Sep 17 00:00:00 2001 From: pedro Date: Sun, 8 May 2022 20:57:53 +0200 Subject: [PATCH 01/32] [__jitsi_meet] Allow ssh on ufw --- type/__jitsi_meet/files/ufw | 1 + 1 file changed, 1 insertion(+) diff --git a/type/__jitsi_meet/files/ufw b/type/__jitsi_meet/files/ufw index 761d820..3ac8c4f 100644 --- a/type/__jitsi_meet/files/ufw +++ b/type/__jitsi_meet/files/ufw @@ -2,6 +2,7 @@ # Setup firewall __ufw +require="__ufw" __ufw_rule ssh --rule 'allow 22/tcp' # Allow jitsi ports require="__ufw" __ufw_rule http --rule 'allow 80/tcp' require="__ufw" __ufw_rule https --rule 'allow 443/tcp' From 797f7c864814f69d0a138b3f415acfd4ca539121 Mon Sep 17 00:00:00 2001 From: Evilham Date: Sun, 8 May 2022 21:47:26 +0200 Subject: [PATCH 02/32] [__jitsi_meet] Improve manpage regarding ufw and SSH This documents the fact that this type does not make decisions about anything other than Jitsi-Meet itself and therefore care should be taken with the SSH port. Related to: https://code.ungleich.ch/ungleich-public/cdist-contrib/pulls/23 Reported by: @pedro --- type/__jitsi_meet/man.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/type/__jitsi_meet/man.rst b/type/__jitsi_meet/man.rst index 876c218..03a4a35 100644 --- a/type/__jitsi_meet/man.rst +++ b/type/__jitsi_meet/man.rst @@ -21,10 +21,10 @@ You will also need the `__jitsi_meet_domain` type in order to finish setting up the web frontend (including TLS certificates) and its settings. You may want to use the `files/ufw` example manifest for a `__ufw`-based -firewall compatible with this type. -This file does not include rules for TCP port 9888, which exposes the -prometheus exporter if not disabled. -You should apply your own rules here. +firewall compatible with this type that allows all ports needed by Jitsi-Meet. +Note however that this will not deal with rules for SSH or for TCP port 9888, +which exposes the prometheus exporter if not disabled. +Remember to apply your own rules here, particularly regarding SSH. This type only works on De{bi,vu}an systems. @@ -76,9 +76,11 @@ EXAMPLES .. code-block:: sh - # Setup the firewall + # Setup the firewall for Jitsi-Meet . "${__global}/type/__jitsi_meet/files/ufw" export require="__ufw" + # Setup firewall SSH rules as necessary + __ufw_rule ssh --rule 'allow 22/tcp from 10.0.0.0/24' # Setup Jitsi on this host __jitsi_meet \ --turn-server "turn.exo.cat" \ From 756e5b17c63d641ac35ffad513d3ed15188b87ca Mon Sep 17 00:00:00 2001 From: Evilham Date: Tue, 7 Jun 2022 15:00:00 +0200 Subject: [PATCH 03/32] [__jitsi_meet*] Update to 2.0.7287-1 Sponsored by: camilion.eu, eXO.cat --- .../files/_update_jitsi_configurations.sh | 2 +- type/__jitsi_meet_domain/files/config.js.sh | 38 +++++++++++++++++-- .../files/config.js.sh.orig | 38 +++++++++++++++++-- type/__jitsi_meet_domain/files/jitsi-version | 2 +- .../files/prosody.cfg.lua.sh | 17 +++++++++ .../files/prosody.cfg.lua.sh.orig | 15 ++++++++ 6 files changed, 102 insertions(+), 10 deletions(-) diff --git a/type/__jitsi_meet_domain/files/_update_jitsi_configurations.sh b/type/__jitsi_meet_domain/files/_update_jitsi_configurations.sh index 0d9f53a..8b14e5c 100755 --- a/type/__jitsi_meet_domain/files/_update_jitsi_configurations.sh +++ b/type/__jitsi_meet_domain/files/_update_jitsi_configurations.sh @@ -7,7 +7,7 @@ # We could automate this, but are using it as an indicator for the # latest branch with which we conciliated changes. -BRANCH="jitsi-meet_7210" +BRANCH="jitsi-meet_7287" REPO="https://github.com/jitsi/jitsi-meet" get_url() { diff --git a/type/__jitsi_meet_domain/files/config.js.sh b/type/__jitsi_meet_domain/files/config.js.sh index 6836dd1..e52ed32 100644 --- a/type/__jitsi_meet_domain/files/config.js.sh +++ b/type/__jitsi_meet_domain/files/config.js.sh @@ -4,6 +4,11 @@ JITSI_CONFIG_JS="$(cat <