mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 13:41:03 +01:00
Compare commits
No commits in common. "4b008750dd79bcdec034a0a05db39f7d0a225549" and "dc11daf43d76f3543d21a646ae5564ff5a884a3c" have entirely different histories.
4b008750dd
...
dc11daf43d
@ -1,5 +1,6 @@
|
|||||||
# Deactivate CSP header
|
# Add CSP header
|
||||||
more_set_headers "Content-Security-Policy: ";
|
more_set_headers "Content-Security-Policy: default-src 'self'; img-src 'self' https://matomo.{{top_domain}}; script-src 'self' 'unsafe-inline' https://matomo.{{top_domain}};";
|
||||||
|
|
||||||
|
|
||||||
# sub filters to integrate matomo tracking code in nginx websites
|
# sub filters to integrate matomo tracking code in nginx websites
|
||||||
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';
|
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
var _paq = window._paq = window._paq || [];
|
var _paq = window._paq = window._paq || [];
|
||||||
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
|
||||||
_paq.push(["setCookieDomain", "*.{{base_domain}}"]);
|
_paq.push(["setCookieDomain", "*.{{base_domain}}"]);
|
||||||
_paq.push(["setDomains", ["*.{{base_domain}}"]]);
|
_paq.push(["setDomains", ["*.{{base_domain}}"]]);
|
||||||
_paq.push(["enableCrossDomainLinking"]);
|
_paq.push(["enableCrossDomainLinking"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user