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