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