Files

28 lines
746 B
Nginx Configuration File
Raw Permalink Normal View History

2026-05-22 21:20:56 +00:00
server {
listen 80;
server_name _;
root /var/lib/nginx/html;
2026-05-22 21:20:56 +00:00
index index.html;
location /api/ {
proxy_pass http://zeavis-api:4006/api/;
proxy_set_header Host $host;
2026-05-22 21:20:56 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Expose API metrics through the web endpoint (Prometheus scrape target)
location /metrics {
proxy_pass http://zeavis-api:4006/metrics;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
2026-05-22 21:20:56 +00:00
location / {
try_files $uri $uri/ /index.html;
}
}