File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,26 @@ server {
4343 add_header X-XSS-Protection "1; mode=block" always;
4444 add_header Referrer-Policy "strict-origin-when-cross-origin" always;
4545
46+
47+
48+ # Umami Analytics -> Umami container (port 3002)
49+ # Proxied through /umami/* to avoid ad blockers
50+ location ^~ /umami/ {
51+ proxy_pass http://telemetry_umami:3002/;
52+ proxy_set_header Host $host;
53+ proxy_set_header X-Real-IP $remote_addr;
54+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
55+ proxy_set_header X-Forwarded-Proto $scheme;
56+ proxy_set_header X-Forwarded-Host $host;
57+ proxy_redirect off;
58+
59+ # Disable caching for analytics
60+ proxy_buffering off;
61+ proxy_cache off;
62+ expires off;
63+ add_header Cache-Control "no-cache, no-store, must-revalidate";
64+ }
65+
4666 location ^~ /api/ {
4767 proxy_pass http://telemetry_backend:8001/;
4868 proxy_set_header Host $host;
You can’t perform that action at this time.
0 commit comments