New (not finished)
authorMike Taylor <mike@indexdata.com>
Fri, 16 Jun 2006 10:31:42 +0000 (10:31 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 16 Jun 2006 10:31:42 +0000 (10:31 +0000)
etc/config-bytarget.xml [new file with mode: 0644]

diff --git a/etc/config-bytarget.xml b/etc/config-bytarget.xml
new file mode 100644 (file)
index 0000000..4403e26
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!-- $Id: config-bytarget.xml,v 1.1 2006-06-16 10:31:42 mike Exp $ -->
+<yp2 xmlns="http://indexdata.dk/yp2/config/1">
+  <start route="start"/>
+  <routes>
+    <route id="start">
+      <filter type="frontend_net">
+        <threads>10</threads>
+        <port>@:9000</port>
+      </filter>
+      <filter type="log">
+        <message>Frontend</message>
+      </filter>
+      <filter type="virt_db">
+        <virtual>
+          <database>loc</database>
+          <target>z3950.loc.gov:7090/voyager</target>
+        </virtual>
+        <virtual>
+          <database>idgils</database>
+          <target>indexdata.dk/gils</target>
+        </virtual>
+        <virtual>
+          <database>all</database>
+          <target>indexdata.dk/gils</target>
+          <target>z3950.loc.gov:7090/voyager</target>
+        </virtual>
+      </filter>
+      <filter type="multi">
+        <target route="group1">z3950.loc.gov:7090/voyager</target>
+        <target route="group2">indexdata.dk/gils</target>
+      </filter>
+    </route>
+    <route id="group1">
+      <!-- ### Adam suggests: <filter type="multi"/> -->
+      <filter type="query_rewrite">
+        <xslt>pqf2pqf.xsl</xslt>
+      </filter>
+      <filter type="log">
+        <message>Group 1</message>
+      </filter>
+      <filter type="z3950_client">
+        <timeout>30</timeout>
+      </filter>
+    </route>
+    <route id="group2">
+      <!-- ### Adam suggests: <filter type="multi"/> -->
+<!--
+      <filter type="auth-set">
+        <username>mike</username>
+        <password>fishy</password>
+        <group></group>
+      </filter>
+-->
+      <filter type="log">
+       <message>Group 2</message>
+      </filter>
+      <filter type="z3950_client">
+       <timeout>30</timeout>
+      </filter>
+    </route>
+  </routes>
+</yp2>