Correction : Burette de la Cyclo de Paris Est.
[lhc/ateliers.git] / etc / nginx / site.d / cyclo-burette / site.conf
1 server_name
2 burette.cyclocoop.org
3 burette.cyclocoop.heureux-cyclage.org;
4
5 client_body_buffer_size 1024k;
6 client_max_body_size 10m;
7
8 proxy_buffers 16 64k;
9 proxy_buffer_size 128k;
10
11 location ~ /\. {
12 access_log off;
13 deny all;
14 log_not_found off;
15 }
16 location / {
17 proxy_next_upstream error timeout
18 invalid_header
19 http_500
20 http_502
21 http_503;
22 # NOTE: force timeouts if the backend dies.
23 proxy_pass http://openerp_cyclo_paris_est;
24 proxy_redirect off;
25 # NOTE: by default, do not forward anything
26 proxy_read_timeout 500;
27 proxy_set_header Host $host;
28 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
29 proxy_set_header X-Forwarded-Proto https;
30 # NOTE: let the OpenERP web service know that we're using HTTPS,
31 # otherwise it will generate URL using http:// and not https://
32 proxy_set_header X-Real-IP $remote_addr;
33 }
34
35 location ~* ^/web/static/ {
36 # NOTE: cache some static data in memory for 60mins;
37 # under heavy load this should relieve stress on the OpenERP web interface a bit.
38 expires 864000;
39 proxy_buffering on;
40 proxy_cache_valid 200 60m;
41 proxy_pass http://openerp_cyclo_paris_est;
42 }
43
44 # vim: ft=sh