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