From 3fb81019b480b248ceadfb570d4fa2d7c2a8f25a Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 8 Jun 2026 09:31:30 +0000 Subject: [PATCH] Update nginx config: add health check, improve SPA fallback --- nginx.conf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index f1e87ee..9f2a623 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,12 +1,18 @@ server { - listen 80; + listen 80 default_server; server_name _; root /usr/share/nginx/html; index index.html; - # Serve static assets 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