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