Update nginx config: add health check, improve SPA fallback

This commit is contained in:
Vivek 2026-06-08 09:31:30 +00:00
parent 7ff308751e
commit 3fb81019b4

View file

@ -1,12 +1,18 @@
server { server {
listen 80; listen 80 default_server;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
# Serve static assets
location / { location / {
try_files $uri /index.html; try_files $uri $uri/ /index.html;
}
# Disable logging for health checks
location = /health {
access_log off;
return 200 "OK";
add_header Content-Type text/plain;
} }
# Gzip compression # Gzip compression