e8e56548c25e57d9120413681f29dea36e2ba7a9
[lhc/ateliers.git] / etc / nginx / site.d / burette / site.conf
1 server_name
2 burettes.heureux-cyclage.org
3 burette.atelierdynamo.fr
4 burette.autourducycle.heureux-cyclage.org
5 burette.bretzselle.heureux-cyclage.org
6 burette.bretzselle.org
7 burette.changedechaine.heureux-cyclage.org
8 burette.cyclocoop.heureux-cyclage.org
9 burette.cyclocoop.org
10 burette.cyclofficineangouleme.heureux-cyclage.org
11 burette.dynamo.heureux-cyclage.org
12 burette.labecaneajules.fr
13 burette.labecaneajules.heureux-cyclage.org
14 burette.laptiterustine.heureux-cyclage.org
15 burette.mobilidees.heureux-cyclage.org
16 burette.mobilidees.org
17 burette.ohcyclo.heureux-cyclage.org
18 burette.ptitvelo.heureux-cyclage.org
19 burette.ptitvelo.net
20 burette.repeyre.fr
21 burette.repeyre.heureux-cyclage.org
22 burette.rouepet.heureux-cyclage.org
23 burette.rouepet.org
24 burette.txirrindola.heureux-cyclage.org
25 burette.txirrindola.org
26 burette.velorution.org
27 burette.velorution_idf.heureux-cyclage.org
28 burette.velorutiontoulouse.heureux-cyclage.org
29 burette.velosenville.org
30 burette.vieuxbiclou.heureux-cyclage.org
31 burette.vieuxbiclou.org;
32
33 client_body_buffer_size 1024k;
34 client_max_body_size 10m;
35
36 proxy_buffers 16 64k;
37 proxy_buffer_size 128k;
38
39 location ~ /\. {
40 access_log off;
41 deny all;
42 log_not_found off;
43 }
44 location / {
45 proxy_next_upstream error timeout
46 invalid_header
47 http_500
48 http_502
49 http_503;
50 # NOTE: force timeouts if the backend dies.
51 proxy_pass http://openerp7_burette;
52 proxy_redirect off;
53 # NOTE: by default, do not forward anything
54 proxy_read_timeout 500;
55 proxy_set_header Host $host;
56 proxy_set_header OpenERP-DB-Filter $burette_dbfilter;
57 # TODO: utiliser un certificat utilisateurice X.509
58 # pour initialiser cette variable.
59 proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
60 proxy_set_header X-Forwarded-Proto https;
61 # NOTE: let the OpenERP web service know that we're using HTTPS,
62 # otherwise it will generate URL using http:// and not https://
63 proxy_set_header X-Real-IP $remote_addr;
64 }
65
66 location ~* ^/web/static/ {
67 # NOTE: cache some static data in memory for 60mins;
68 # under heavy load this should relieve stress on the OpenERP web interface a bit.
69 expires 864000;
70 proxy_buffering on;
71 proxy_cache_valid 200 60m;
72 proxy_pass http://openerp7_burette;
73 }
74
75 # vim: ft=sh