mirror of
https://github.com/wekan/wekan.git
synced 2026-02-12 03:04:22 +01:00
Integration of matomo with env vars
This commit is contained in:
parent
aa080a7506
commit
ec59af3777
5 changed files with 92 additions and 1 deletions
9
server/policy.js
Normal file
9
server/policy.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { BrowserPolicy } from 'meteor/browser-policy-common';
|
||||
|
||||
Meteor.startup(() => {
|
||||
const matomoUrl = process.env.MATOMO_ADDRESS;
|
||||
if (matomoUrl){
|
||||
BrowserPolicy.content.allowScriptOrigin(matomoUrl);
|
||||
BrowserPolicy.content.allowImageOrigin(matomoUrl);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue