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