|
@@ -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"
|