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