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