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