diff --git a/nginx-prod.conf b/nginx-prod.conf index f4150c7..897b806 100644 --- a/nginx-prod.conf +++ b/nginx-prod.conf @@ -93,5 +93,12 @@ http { proxy_set_header Host $host; proxy_buffering off; } + + # Fly.io health check - respond directly from nginx (no upstream needed) + location = /health { + access_log off; + add_header Content-Type application/json; + return 200 '{"status":"ok"}'; + } } } diff --git a/nginx.conf b/nginx.conf index 6c7f5a3..d03d778 100644 --- a/nginx.conf +++ b/nginx.conf @@ -92,5 +92,12 @@ http { proxy_set_header Host $host; proxy_buffering off; } + + # Health check - respond directly from nginx (no upstream needed) + location = /health { + access_log off; + add_header Content-Type application/json; + return 200 '{"status":"ok"}'; + } } }