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