瀏覽代碼

Fixes for jitsi-meet-tokens Debian package.

j8
paweldomas 9 年之前
父節點
當前提交
ca89b59638

+ 5
- 4
debian/jitsi-meet-tokens.postinst 查看文件

@@ -59,11 +59,12 @@ case "$1" in
59 59
         if [ -f "$PROSODY_HOST_CONFIG" ] ; then
60 60
             if grep -q "plugin_paths" "$PROSODY_HOST_CONFIG"; then
61 61
                 # enable tokens in prosody host config
62
-                sed -i "s/--plugin_paths/plugin_paths/g" $PROSODY_HOST_CONFIG
62
+                sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIG
63 63
                 sed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG
64
-                sed -i "s/--app_id=example_app_id/app_id=$APP_ID/g" $PROSODY_HOST_CONFIG
65
-                sed -i "s/--app_secret=example_app_secret/app_secret=$APP_SECRET/g" $PROSODY_HOST_CONFIG
66
-                sed -i 's/--modules_enabled = { "token_verification" }/modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
64
+                sed -i 's/ --allow_unencrypted_plain_auth/ allow_unencrypted_plain_auth/g' $PROSODY_HOST_CONFIG
65
+                sed -i "s/ --app_id=example_app_id/ app_id=$APP_ID/g" $PROSODY_HOST_CONFIG
66
+                sed -i "s/ --app_secret=example_app_secret/ app_secret=$APP_SECRET/g" $PROSODY_HOST_CONFIG
67
+                sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
67 68
 
68 69
             else
69 70
                 echo "Failed apply auto-config to $PROSODY_HOST_CONFIG which most likely comes from not supported version of jitsi-meet"

+ 5
- 4
debian/jitsi-meet-tokens.postrm 查看文件

@@ -37,11 +37,12 @@ case "$1" in
37 37
             APP_SECRET=$RET
38 38
 
39 39
             # Revert prosody config
40
-            sed -i "s/plugin_paths/--plugin_paths/g" $PROSODY_HOST_CONFIG
40
+            sed -i 's/plugin_paths/--plugin_paths/g' $PROSODY_HOST_CONFIG
41 41
             sed -i 's/authentication = "token"/authentication = "anonymous"/g' $PROSODY_HOST_CONFIG
42
-            sed -i "s/app_id=$APP_ID/--app_id=example_app_id/g" $PROSODY_HOST_CONFIG
43
-            sed -i "s/app_secret=$APP_SECRET/--app_secret=example_app_secret/g" $PROSODY_HOST_CONFIG
44
-            sed -i 's/modules_enabled = { "token_verification" }/--modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
42
+            sed -i 's/ allow_unencrypted_plain_auth/ --allow_unencrypted_plain_auth/g' $PROSODY_HOST_CONFIG
43
+            sed -i "s/ app_id=$APP_ID/ --app_id=example_app_id/g" $PROSODY_HOST_CONFIG
44
+            sed -i "s/ app_secret=$APP_SECRET/ --app_secret=example_app_secret/g" $PROSODY_HOST_CONFIG
45
+            sed -i 's/ modules_enabled = { "token_verification" }/ --modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
45 46
 
46 47
             if [ -x "/etc/init.d/prosody" ]; then
47 48
                 invoke-rc.d prosody reload

+ 2
- 1
doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example 查看文件

@@ -4,8 +4,9 @@
4 4
 VirtualHost "jitmeet.example.com"
5 5
         -- enabled = false -- Remove this line to enable this host
6 6
         authentication = "anonymous"
7
-        -- Two properties below get uncommented by jitsi-meet-tokens package config
7
+        -- Three properties below get uncommented by jitsi-meet-tokens package config
8 8
         -- and authentication above is switched to "token"
9
+        --allow_unencrypted_plain_auth = true;
9 10
         --app_id=example_app_id
10 11
         --app_secret=example_app_secret
11 12
         -- Assign this host a certificate for TLS, otherwise it would use the one

Loading…
取消
儲存