server { listen 80 default_server; server_name _; root /usr/share/nginx/html; index index.html; location / { 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 on; gzip_types text/plain text/css application/json application/javascript text/xml application/xml; }