Ajout : cyclo-vote.
[lhc/ateliers.git] / etc / nginx / site.d / cyclo-vote / site.conf
1 server_name
2 vote.cyclocoop.org;
3
4 client_body_buffer_size 8k;
5 client_max_body_size 10m;
6 location ~ /\. {
7 access_log off;
8 deny all;
9 log_not_found off;
10 }
11
12 proxy_buffers 16 64k;
13 proxy_buffer_size 128k;
14
15 location / {
16 proxy_next_upstream error timeout
17 invalid_header
18 http_500
19 http_502
20 http_503;
21 # NOTE: force timeouts if the backend dies.
22 proxy_pass http://cyclo-vote;
23 proxy_redirect off;
24 # NOTE: by default, do not forward anything
25 proxy_read_timeout 500;
26 proxy_set_header Host $host;
27 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
28 proxy_set_header X-Forwarded-Proto https;
29 proxy_set_header X-Real-IP $remote_addr;
30 }
31
32 # vim: ft=sh