server { listen 8080; server_name _; root /usr/share/nginx/html; client_body_temp_path /tmp/client_temp; proxy_temp_path /tmp/proxy_temp; fastcgi_temp_path /tmp/fastcgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; location /api/ { proxy_pass http://127.0.0.1:8081; proxy_http_version 1.1; proxy_buffering off; proxy_read_timeout 30s; } location = /healthz { proxy_pass http://127.0.0.1:8081; } location / { try_files $uri $uri/ /index.html; } }