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