pid /tmp/nginx.pid; worker_processes auto; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /dev/stdout; error_log /dev/stderr warn; sendfile on; server_tokens off; client_body_temp_path /tmp/client_temp; fastcgi_temp_path /tmp/fastcgi_temp; proxy_temp_path /tmp/proxy_temp; scgi_temp_path /tmp/scgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; map $http_x_forwarded_proto $govoplan_forwarded_proto { default $scheme; http http; https https; } server { listen 8080; root /usr/share/nginx/html; location = /health { access_log off; default_type text/plain; return 200 "ok\n"; } location /api/ { proxy_pass ${GOVOPLAN_API_UPSTREAM}; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $govoplan_forwarded_proto; proxy_set_header X-Forwarded-For $http_x_forwarded_for; } location / { try_files $uri $uri/ /index.html; } } }