From ccb5b543e3738b4dc2460ab3f016162c92edd339 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 16 Dec 2020 03:04:20 -0600 Subject: [PATCH] Fix guest virtualhost conf --- mode/jwt.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mode/jwt.sh b/mode/jwt.sh index b5fc9bc..c027805 100644 --- a/mode/jwt.sh +++ b/mode/jwt.sh @@ -44,6 +44,18 @@ sed -i "/app_secret/a \ \ \ \ \ \ \ \ asap_accepted_audiences = { \"$APP_ID\", \ sed -i "s|#org.jitsi.jicofo.auth.URL=EXT_JWT:|org.jitsi.jicofo.auth.URL=EXT_JWT:|" $JICOFO_SIP sed -i "s|// anonymousdomain: 'guest.example.com'|anonymousdomain: \'guest.$DOMAIN\'|" $MEET_CONF +#Setup guests and lobby +cat << P_SR >> $PROSODY_FILE + +VirtualHost "guest.$DOMAIN" + authentication = "token" + allow_empty_token = true + c2s_require_encryption = false + muc_lobby_whitelist = { "recorder.$DOMAIN", "auth.$DOMAIN" } + app_id="$APP_ID"; + app_secret="$SECRET_APP"; + +P_SR echo -e "\nUse the following for your App (e.g. Rocket.Chat):\n" echo -e "\n$APP_ID" && \ @@ -59,4 +71,4 @@ pyjwt3 --key="$SECRET_APP" \ room="*" \ algorithm="HS256" -read -n 1 -s -r -p "Press any key to continue..."$'\n' +read -n 1 -s -r -p $'\n'"Press any key to continue..."$'\n'