From ea14c8dab7e88926da141fb2fd840fcd16d45d46 Mon Sep 17 00:00:00 2001 From: Luis Guzman Date: Mon, 7 Jan 2019 02:00:55 -0600 Subject: [PATCH] Add secure rooms As title says, with this you get asked about enabling the secure rooms feature, enjoy. --- quick_jibri_installer.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 8e54916..4f6e6c0 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -259,7 +259,7 @@ prosodyctl register recorder recorder.$DOMAIN $JB_REC_PASS ## JICOFO # /etc/jitsi/jicofo/sip-communicator.properties cat << BREWERY >> $JICOFO_SIP -#org.jitsi.jicofo.auth.URL=XMPP:$DOMAIN +org.jitsi.jicofo.auth.URL=XMPP:$DOMAIN org.jitsi.jicofo.jibri.BREWERY=$JibriBrewery@internal.auth.$DOMAIN org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90 BREWERY @@ -406,6 +406,25 @@ else -> https://github.com/switnet-ltd/quick-jibri-installer/issues" fi +#Enable secure rooms? +while [[ $ENABLE_SC != yes && $ENABLE_SC != no ]] +do +read -p "Do you want to enable secure rooms?: (yes or no)"$'\n' -r ENABLE_SC +if [ $ENABLE_SC = no ]; then + echo "Secure rooms won't be enable" +elif [ $ENABLE_SC = yes ]; then + echo "Secure rooms are being enable" +cat << P_SR >> $PROSODY_FILE +VirtualHost "$DOMAIN" + authentication = "internal_plain" + +VirtualHost "guest.$DOMAIN" + authentication = "anonymous" + c2s_require_encryption = false +P_SR +fi +done + #Enable jibri services systemctl enable jibri systemctl enable jibri-xorg