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