--- /dev/null
+server_name
+ burettes.heureux-cyclage.org
+ burette.atelier-etincelle.org
+ burette.atelier-etincelle.heureux-cyclage.org
+ burette.atelierdynamo.fr
+ burette.autourducycle.heureux-cyclage.org
+ burette.bretzselle.heureux-cyclage.org
+ burette.bretzselle.org
+ burette.changedechaine.heureux-cyclage.org
+ burette.cyclesetmanivelles.heureux-cyclage.org
+ burette.cyclocoop.heureux-cyclage.org
+ burette.cyclocoop.org
+ burette.cyclofficineangouleme.heureux-cyclage.org
+ burette.dynamo.heureux-cyclage.org
+ burette.etudesetchantiersidf.heureux-cyclage.org
+ burette.eturecup.heureux-cyclage.org
+ burette.eturecup.org
+ burette.labecaneajules.fr
+ burette.labecaneajules.heureux-cyclage.org
+ burette.lapetiterennes.heureux-cyclage.org
+ burette.lapetiterennes.org
+ burette.laptiterustine.heureux-cyclage.org
+ burette.larouelibre.heureux-cyclage.org
+ burette.la-roue-libre.com
+ burette.lechatperche.heureux-cyclage.org
+ burette.mig.heureux-cyclage.org
+ burette.mobilidees.heureux-cyclage.org
+ burette.mobilidees.org
+ burette.ohcyclo.heureux-cyclage.org
+ burette.ptitvelo.heureux-cyclage.org
+ burette.ptitvelo.net
+ burette.recupr.heureux-cyclage.org
+ burette.recupr.org
+ burette.repeyre.fr
+ burette.repeyre.heureux-cyclage.org
+ burette.rouepet.heureux-cyclage.org
+ burette.rouepet.org
+ burette.txirrindola.heureux-cyclage.org
+ burette.txirrindola.org
+ burette.velocampus.net
+ burette.velocampus_nantes.heureux-cyclage.org
+ burette.velorution.org
+ burette.velorution_idf.heureux-cyclage.org
+ burette.velorutiontoulouse.heureux-cyclage.org
+ burette.velosenville.org
+ burette.vieuxbiclou.heureux-cyclage.org
+ burette.vieuxbiclou.org;
+
+client_body_buffer_size 1024k;
+client_max_body_size 10m;
+
+proxy_buffers 16 64k;
+proxy_buffer_size 128k;
+
+location ~ /\. {
+ access_log off;
+ deny all;
+ log_not_found off;
+ }
+location / {
+ proxy_next_upstream error timeout
+ invalid_header
+ http_500
+ http_502
+ http_503;
+ # NOTE: force timeouts if the backend dies.
+ proxy_pass http://openerp7_burette;
+ proxy_redirect off;
+ # NOTE: by default, do not forward anything
+ proxy_read_timeout 500;
+ proxy_set_header Host $host;
+ proxy_set_header OpenERP-DB-Filter $burette_dbfilter;
+ # TODO: utiliser un certificat utilisateurice X.509
+ # pour initialiser cette variable.
+ proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto https;
+ # NOTE: let the OpenERP web service know that we're using HTTPS,
+ # otherwise it will generate URL using http:// and not https://
+ proxy_set_header X-Real-IP $remote_addr;
+ }
+
+location ~* ^/web/static/ {
+ # NOTE: cache some static data in memory for 60mins;
+ # under heavy load this should relieve stress on the OpenERP web interface a bit.
+ expires 864000;
+ proxy_buffering on;
+ proxy_cache_valid 200 60m;
+ proxy_pass http://openerp7_burette;
+ }
+
+# vim: ft=sh