server_name vote.cyclocoop.org; client_body_buffer_size 8k; client_max_body_size 10m; location ~ /\. { access_log off; deny all; log_not_found off; } proxy_buffers 16 64k; proxy_buffer_size 128k; location / { proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; # NOTE: force timeouts if the backend dies. proxy_pass http://cyclo-vote; proxy_redirect off; # NOTE: by default, do not forward anything proxy_read_timeout 500; proxy_set_header Host $host; proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Real-IP $remote_addr; } # vim: ft=sh