From a12b343660254f5135aba81013d8ad80f161c21d Mon Sep 17 00:00:00 2001 From: Evilham Date: Thu, 21 Apr 2022 13:13:12 +0200 Subject: [PATCH] [__jitsi_meet_domain] Add analytics settings parameter with this, admins can take advantage of e.g. matomo to have some usage statistics. The parameter defaults to `disabled: true`, which is the most privacy-friendly! Sponsored by: camilion.eu --- type/__jitsi_meet_domain/files/config.js.sh | 1 + type/__jitsi_meet_domain/man.rst | 5 +++++ type/__jitsi_meet_domain/manifest | 1 + .../__jitsi_meet_domain/parameter/default/analytics-settings | 1 + type/__jitsi_meet_domain/parameter/optional | 1 + 5 files changed, 9 insertions(+) create mode 100644 type/__jitsi_meet_domain/parameter/default/analytics-settings diff --git a/type/__jitsi_meet_domain/files/config.js.sh b/type/__jitsi_meet_domain/files/config.js.sh index 7fec422..506e62d 100644 --- a/type/__jitsi_meet_domain/files/config.js.sh +++ b/type/__jitsi_meet_domain/files/config.js.sh @@ -817,6 +817,7 @@ $(if [ -n "${VIDEO_CONSTRAINTS}" ]; then echo "${VIDEO_CONSTRAINTS},"; fi) }, analytics: { +${ANALYTICS_SETTINGS} // True if the analytics should be disabled // disabled: false, diff --git a/type/__jitsi_meet_domain/man.rst b/type/__jitsi_meet_domain/man.rst index b035555..dd8c852 100644 --- a/type/__jitsi_meet_domain/man.rst +++ b/type/__jitsi_meet_domain/man.rst @@ -41,6 +41,11 @@ admin-email OPTIONAL PARAMETERS ------------------- +analytics-settings + This goes inside the `analytics` part of `config.js`. + Defaults to: `disabled: true`. + See: https://github.com/jitsi/jitsi-meet/blob/master/config.js + channel-last-n Default value for the "last N" attribute. Defaults to 20. Set to -1 for unlimited. diff --git a/type/__jitsi_meet_domain/manifest b/type/__jitsi_meet_domain/manifest index 87af1b9..abc8a1a 100755 --- a/type/__jitsi_meet_domain/manifest +++ b/type/__jitsi_meet_domain/manifest @@ -18,6 +18,7 @@ NOTICE_MESSAGE="$(cat "${__object}/parameter/notice-message")" START_VIDEO_MUTED="$(cat "${__object}/parameter/start-video-muted")" TURN_SERVER="$(cat "${__object}/parameter/turn-server")" VIDEO_CONSTRAINTS="$(cat "${__object}/parameter/video-constraints")" +ANALYTICS_SETTINGS="$(cat "${__object}/parameter/analytics-settings")" BRANDING_INDEX="$(cat "${__object}/parameter/branding-index")" BRANDING_JSON="$(cat "${__object}/parameter/branding-json")" BRANDING_WATERMARK="$(cat "${__object}/parameter/branding-watermark")" diff --git a/type/__jitsi_meet_domain/parameter/default/analytics-settings b/type/__jitsi_meet_domain/parameter/default/analytics-settings new file mode 100644 index 0000000..561a7d6 --- /dev/null +++ b/type/__jitsi_meet_domain/parameter/default/analytics-settings @@ -0,0 +1 @@ + disabled: true diff --git a/type/__jitsi_meet_domain/parameter/optional b/type/__jitsi_meet_domain/parameter/optional index ce50f0d..1289b85 100644 --- a/type/__jitsi_meet_domain/parameter/optional +++ b/type/__jitsi_meet_domain/parameter/optional @@ -1,3 +1,4 @@ +analytics-settings channel-last-n default-language notice-message