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