Skip to content

Commit 1cdef16

Browse files
committed
Update Nginx Config
1 parent 9917c3d commit 1cdef16

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nginx/nginx_telemetry.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)