implemented cross-domain matomo tracking on nginx level

This commit is contained in:
2023-11-18 20:02:55 +01:00
parent f285f2b46e
commit a60ec9fa21
54 changed files with 182 additions and 64 deletions

View File

@@ -1,2 +1,2 @@
dependencies:
- docker-reverse-proxy
- nginx-docker-reverse-proxy

View File

@@ -4,6 +4,10 @@ server
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
{% if nginx_matomo_tracking_active | default(False) %}
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
{% endif %}
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
@@ -15,7 +19,7 @@ server
client_body_buffer_size 400M;
fastcgi_buffers 64 4K;
{% include 'roles/docker-reverse-proxy/templates/proxy_pass.conf.j2' %}
{% include 'roles/nginx-docker-reverse-proxy/templates/proxy_pass.conf.j2' %}
location ^~ /.well-known {
rewrite ^/\.well-known/host-meta\.json /public.php?service=host-meta-json last;