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