From 064af0661e8aa6343244d70685b8d7ef9e3f79f7 Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 8 Jun 2026 11:50:49 +0000 Subject: [PATCH] Update nginx config for proper listen and health endpoint --- nginx.conf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/nginx.conf b/nginx.conf index 9f2a623..86bcd0e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,21 +1,23 @@ server { - listen 80 default_server; + listen 80; + listen [::]:80; server_name _; + root /usr/share/nginx/html; index index.html; location / { - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } - # Disable logging for health checks location = /health { - access_log off; - return 200 "OK"; add_header Content-Type text/plain; + return 200 "OK\n"; + access_log off; } - # Gzip compression gzip on; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml; + + access_log off; } \ No newline at end of file