3 burette.cyclocoop.heureux-cyclage.org;
5 client_body_buffer_size 1024k;
6 client_max_body_size 10m;
9 proxy_buffer_size 128k;
17 proxy_next_upstream error timeout
22 # NOTE: force timeouts if the backend dies.
23 proxy_pass http://openerp_cyclo_paris_est;
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;
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.
40 proxy_cache_valid 200 60m;
41 proxy_pass http://openerp_cyclo_paris_est;