2 demo.burette.heureux-cyclage.org;
4 client_body_buffer_size 1024k;
5 client_max_body_size 10m;
8 proxy_buffer_size 128k;
16 proxy_next_upstream error timeout
21 # NOTE: force timeouts if the backend dies.
22 proxy_pass http://openerp_lhc_demo;
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 # NOTE: let the OpenERP web service know that we're using HTTPS,
30 # otherwise it will generate URL using http:// and not https://
31 proxy_set_header X-Real-IP $remote_addr;
34 location ~* ^/web/static/ {
35 # NOTE: cache some static data in memory for 60mins;
36 # under heavy load this should relieve stress on the OpenERP web interface a bit.
39 proxy_cache_valid 200 60m;
40 proxy_pass http://openerp_lhc_demo;