AjoutĀ : etc/nginx/org/heureux-cyclage/burettes
[lhc/admin.git] / srv / ateliers / etc / nginx / org / heureux-cyclage / burettes / common.conf
1 server_name
2 burettes.heureux-cyclage.org
3 burette.atelier-etincelle.org
4 burette.atelier-etincelle.heureux-cyclage.org
5 burette.atelierdynamo.fr
6 burette.autourducycle.heureux-cyclage.org
7 burette.bretzselle.heureux-cyclage.org
8 burette.bretzselle.org
9 burette.changedechaine.heureux-cyclage.org
10 burette.cyclesetmanivelles.heureux-cyclage.org
11 burette.cyclocoop.heureux-cyclage.org
12 burette.cyclocoop.org
13 burette.cyclofficineangouleme.heureux-cyclage.org
14 burette.dynamo.heureux-cyclage.org
15 burette.etudesetchantiersidf.heureux-cyclage.org
16 burette.eturecup.heureux-cyclage.org
17 burette.eturecup.org
18 burette.labecaneajules.fr
19 burette.labecaneajules.heureux-cyclage.org
20 burette.lapetiterennes.heureux-cyclage.org
21 burette.lapetiterennes.org
22 burette.laptiterustine.heureux-cyclage.org
23 burette.larouelibre.heureux-cyclage.org
24 burette.la-roue-libre.com
25 burette.lechatperche.heureux-cyclage.org
26 burette.mig.heureux-cyclage.org
27 burette.mobilidees.heureux-cyclage.org
28 burette.mobilidees.org
29 burette.ohcyclo.heureux-cyclage.org
30 burette.ptitvelo.heureux-cyclage.org
31 burette.ptitvelo.net
32 burette.recupr.heureux-cyclage.org
33 burette.recupr.org
34 burette.repeyre.fr
35 burette.repeyre.heureux-cyclage.org
36 burette.rouepet.heureux-cyclage.org
37 burette.rouepet.org
38 burette.txirrindola.heureux-cyclage.org
39 burette.txirrindola.org
40 burette.velocampus.net
41 burette.velocampus_nantes.heureux-cyclage.org
42 burette.velorution.org
43 burette.velorution_idf.heureux-cyclage.org
44 burette.velorutiontoulouse.heureux-cyclage.org
45 burette.velosenville.org
46 burette.vieuxbiclou.heureux-cyclage.org
47 burette.vieuxbiclou.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