Skip to content

Commit 409cade

Browse files
authored
web: configure Matomo using environment variables
1 parent b731c60 commit 409cade

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ services:
6666
- GOOGLE_API_APP_CLIENT_ID
6767
- INVITE_SERVICE_URL
6868
- JICOFO_AUTH_USER
69+
- MATOMO_ENDPOINT
70+
- MATOMO_SITE_ID
6971
- MICROSOFT_API_APP_CLIENT_ID
7072
- NGINX_RESOLVER
7173
- P2P_USE_STUN_TURN

web/rootfs/defaults/settings-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ config.analytics.amplitudeAPPKey = '{{ .Env.AMPLITUDE_ID }}';
133133
config.analytics.googleAnalyticsTrackingId = '{{ .Env.GOOGLE_ANALYTICS_ID }}';
134134
{{ end -}}
135135

136+
{{ if .Env.MATOMO_ENDPOINT -}}
137+
// Matomo endpoint:
138+
config.analytics.matomoEndpoint = '{{ .Env.MATOMO_ENDPOINT }}';
139+
{{ end -}}
140+
141+
{{ if .Env.MATOMO_SITE_ID -}}
142+
// Matomo site ID:
143+
config.analytics.matomoSiteID = '{{ .Env.MATOMO_SITE_ID }}';
144+
{{ end -}}
145+
136146
{{ if .Env.ANALYTICS_SCRIPT_URLS -}}
137147
// Array of script URLs to load as lib-jitsi-meet "analytics handlers".
138148
config.analytics.scriptURLs = [ '{{ join "','" (splitList "," .Env.ANALYTICS_SCRIPT_URLS) }}' ];

0 commit comments

Comments
 (0)