Disable google spyware within jitsi meet
This commit is contained in:
parent
2ca766199e
commit
28d1a178d8
|
@ -197,6 +197,20 @@ function remove_jitsi {
|
||||||
remove_ddns_domain $JITSI_DOMAIN_NAME
|
remove_ddns_domain $JITSI_DOMAIN_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function jitsi_disable_google_spyware {
|
||||||
|
# Presumably they included Google Analytics for benign reasons, but it's
|
||||||
|
# an obvious security problem. This should disable it.
|
||||||
|
sed -i "s|Google Analytics|Google Spyware deactivated|g" /usr/share/jitsi-meet/analytics.js
|
||||||
|
sed -i "s|www.google-analytics.com|${JITSI_DOMAIN_NAME}|g" /usr/share/jitsi-meet/analytics.js
|
||||||
|
sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/analytics.js
|
||||||
|
sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/analytics.js
|
||||||
|
|
||||||
|
sed -i "s|Google Analytics|Google Spyware deactivated|g" /usr/share/jitsi-meet/libs/analytics.js
|
||||||
|
sed -i "s|www.google-analytics.com|${JITSI_DOMAIN_NAME}|g" /usr/share/jitsi-meet/libs/analytics.js
|
||||||
|
sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/libs/analytics.js
|
||||||
|
sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/libs/analytics.js
|
||||||
|
}
|
||||||
|
|
||||||
function install_jitsi {
|
function install_jitsi {
|
||||||
if [[ "$(can_install_videobridge)" == "0" ]]; then
|
if [[ "$(can_install_videobridge)" == "0" ]]; then
|
||||||
echo $'jitsi meet/videobridge can only be installed on i386 or amd64 architectures'
|
echo $'jitsi meet/videobridge can only be installed on i386 or amd64 architectures'
|
||||||
|
@ -385,6 +399,8 @@ function install_jitsi {
|
||||||
|
|
||||||
set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME"
|
set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME"
|
||||||
|
|
||||||
|
jitsi_disable_google_spyware
|
||||||
|
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
systemctl restart prosody
|
systemctl restart prosody
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue