Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Fixes for jitsi-meet-tokens Debian package.
paweldomasca89b5963876
diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinstindex 651eb480ae..5443f5f655 100644--- a/debian/jitsi-meet-tokens.postinst+++ b/debian/jitsi-meet-tokens.postinst@@ -59,11 +59,12 @@ case "$1" inif [ -f "$PROSODY_HOST_CONFIG" ] ; thenif grep -q "plugin_paths" "$PROSODY_HOST_CONFIG"; then# enable tokens in prosody host config- sed -i "s/--plugin_paths/plugin_paths/g" $PROSODY_HOST_CONFIG+ sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIGsed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG- sed -i "s/--app_id=example_app_id/app_id=$APP_ID/g" $PROSODY_HOST_CONFIG- sed -i "s/--app_secret=example_app_secret/app_secret=$APP_SECRET/g" $PROSODY_HOST_CONFIG- sed -i 's/--modules_enabled = { "token_verification" }/modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG+ sed -i 's/ --allow_unencrypted_plain_auth/ allow_unencrypted_plain_auth/g' $PROSODY_HOST_CONFIG+ sed -i "s/ --app_id=example_app_id/ app_id=$APP_ID/g" $PROSODY_HOST_CONFIG+ sed -i "s/ --app_secret=example_app_secret/ app_secret=$APP_SECRET/g" $PROSODY_HOST_CONFIG+ sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIGelseecho "Failed apply auto-config to $PROSODY_HOST_CONFIG which most likely comes from not supported version of jitsi-meet"diff --git a/debian/jitsi-meet-tokens.postrm b/debian/jitsi-meet-tokens.postrmindex acb1845cf2..53a69f530f 100644--- a/debian/jitsi-meet-tokens.postrm+++ b/debian/jitsi-meet-tokens.postrm@@ -37,11 +37,12 @@ case "$1" inAPP_SECRET=$RET# Revert prosody config- sed -i "s/plugin_paths/--plugin_paths/g" $PROSODY_HOST_CONFIG+ sed -i 's/plugin_paths/--plugin_paths/g' $PROSODY_HOST_CONFIGsed -i 's/authentication = "token"/authentication = "anonymous"/g' $PROSODY_HOST_CONFIG- sed -i "s/app_id=$APP_ID/--app_id=example_app_id/g" $PROSODY_HOST_CONFIG- sed -i "s/app_secret=$APP_SECRET/--app_secret=example_app_secret/g" $PROSODY_HOST_CONFIG- sed -i 's/modules_enabled = { "token_verification" }/--modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG+ sed -i 's/ allow_unencrypted_plain_auth/ --allow_unencrypted_plain_auth/g' $PROSODY_HOST_CONFIG+ sed -i "s/ app_id=$APP_ID/ --app_id=example_app_id/g" $PROSODY_HOST_CONFIG+ sed -i "s/ app_secret=$APP_SECRET/ --app_secret=example_app_secret/g" $PROSODY_HOST_CONFIG+ sed -i 's/ modules_enabled = { "token_verification" }/ --modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIGif [ -x "/etc/init.d/prosody" ]; theninvoke-rc.d prosody reloaddiff --git a/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example b/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.exampleindex 7bce5167f0..dd4302c63f 100644--- a/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example+++ b/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example@@ -4,8 +4,9 @@VirtualHost "jitmeet.example.com"-- enabled = false -- Remove this line to enable this hostauthentication = "anonymous"- -- Two properties below get uncommented by jitsi-meet-tokens package config+ -- Three properties below get uncommented by jitsi-meet-tokens package config-- and authentication above is switched to "token"+ --allow_unencrypted_plain_auth = true;--app_id=example_app_id--app_secret=example_app_secret-- Assign this host a certificate for TLS, otherwise it would use the one