Ajout : etc/sv/ : $HTTP_OPENERP_DB_FILTER .
[lhc/ateliers.git] / etc / nginx / site.d / burette / http.conf
index a98f0b1..a0d1cf7 100644 (file)
@@ -8,7 +8,11 @@ server {
         burette.dynamo.heureux-cyclage.org
         burette.ptitvelo.heureux-cyclage.org
         burette.ptitvelo.net
-        burette.velosenville.org;
+        burette.velorution.org
+        burette.velorution_idf.heureux-cyclage.org
+        burette.velosenville.org
+        burette.vieuxbiclou.heureux-cyclage.org
+        burette.vieuxbiclou.org;
        
        return 301 https://$host$request_uri;
  }
@@ -17,3 +21,19 @@ upstream openerp7_burette {
         fail_timeout=300s
         weight=1;
  }
+map $http_host $burette_dbfilter {
+       default                                    "";
+       burettes.heureux-cyclage.org               ".*$";
+       burette.atelierdynamo.fr                   "dynamo$";
+       burette.cyclocoop.heureux-cyclage.org      "cyclo_.*$";
+       burette.cyclocoop.org                      "cyclo_.*$";
+       burette.dynamo.heureux-cyclage.org         "dynamo$";
+       burette.ptitvelo.heureux-cyclage.org       "ptitvelo$";
+       burette.ptitvelo.net                       "ptitvelo$";
+       burette.velorution.org                     "velorution_idf$";
+       burette.velorution_idf.heureux-cyclage.org "velorution_idf$";
+       burette.velosenville.heureux-cyclage.org   "velosenville$";
+       burette.velosenville.org                   "velosenville$";
+       burette.vieuxbiclou.heureux-cyclage.org    "vieuxbiclou$";
+       burette.vieuxbiclou.org                    "vieuxbiclou$";
+ }