Files
ukmesh/nginx.website.conf
T
2026-03-03 19:11:05 +00:00

19 lines
452 B
Plaintext

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# Proxy API calls through to the app service so live stats work
location /api/ {
proxy_pass http://app:3000/api/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
# SPA fallback — all routes serve index.html
location / {
try_files $uri $uri/ /index.html;
}
}