mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 13:41:03 +01:00
Compare commits
2 Commits
dc11daf43d
...
4b008750dd
Author | SHA1 | Date | |
---|---|---|---|
4b008750dd | |||
747614af64 |
@ -1,6 +1,5 @@
|
||||
# Add CSP header
|
||||
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}};";
|
||||
|
||||
# Deactivate CSP header
|
||||
more_set_headers "Content-Security-Policy: ";
|
||||
|
||||
# sub filters to integrate matomo tracking code in nginx websites
|
||||
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';
|
||||
|
@ -1,4 +1,5 @@
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
||||
_paq.push(["setCookieDomain", "*.{{base_domain}}"]);
|
||||
_paq.push(["setDomains", ["*.{{base_domain}}"]]);
|
||||
_paq.push(["enableCrossDomainLinking"]);
|
||||
|
Loading…
Reference in New Issue
Block a user