web: configure Matomo using environment variables
This commit is contained in:
@@ -66,6 +66,8 @@ services:
|
|||||||
- GOOGLE_API_APP_CLIENT_ID
|
- GOOGLE_API_APP_CLIENT_ID
|
||||||
- INVITE_SERVICE_URL
|
- INVITE_SERVICE_URL
|
||||||
- JICOFO_AUTH_USER
|
- JICOFO_AUTH_USER
|
||||||
|
- MATOMO_ENDPOINT
|
||||||
|
- MATOMO_SITE_ID
|
||||||
- MICROSOFT_API_APP_CLIENT_ID
|
- MICROSOFT_API_APP_CLIENT_ID
|
||||||
- NGINX_RESOLVER
|
- NGINX_RESOLVER
|
||||||
- P2P_USE_STUN_TURN
|
- P2P_USE_STUN_TURN
|
||||||
|
|||||||
@@ -133,6 +133,16 @@ config.analytics.amplitudeAPPKey = '{{ .Env.AMPLITUDE_ID }}';
|
|||||||
config.analytics.googleAnalyticsTrackingId = '{{ .Env.GOOGLE_ANALYTICS_ID }}';
|
config.analytics.googleAnalyticsTrackingId = '{{ .Env.GOOGLE_ANALYTICS_ID }}';
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if .Env.MATOMO_ENDPOINT -}}
|
||||||
|
// Matomo endpoint:
|
||||||
|
config.analytics.matomoEndpoint = '{{ .Env.MATOMO_ENDPOINT }}';
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if .Env.MATOMO_SITE_ID -}}
|
||||||
|
// Matomo site ID:
|
||||||
|
config.analytics.matomoSiteID = '{{ .Env.MATOMO_SITE_ID }}';
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{ if .Env.ANALYTICS_SCRIPT_URLS -}}
|
{{ if .Env.ANALYTICS_SCRIPT_URLS -}}
|
||||||
// Array of script URLs to load as lib-jitsi-meet "analytics handlers".
|
// Array of script URLs to load as lib-jitsi-meet "analytics handlers".
|
||||||
config.analytics.scriptURLs = [ '{{ join "','" (splitList "," .Env.ANALYTICS_SCRIPT_URLS) }}' ];
|
config.analytics.scriptURLs = [ '{{ join "','" (splitList "," .Env.ANALYTICS_SCRIPT_URLS) }}' ];
|
||||||
|
|||||||
Reference in New Issue
Block a user