Implemented plugin facility. First use is authentication from
[yazproxy-moved-to-github.git] / etc / config.xml
index 6bc751c..6fffe7b 100644 (file)
@@ -1,14 +1,17 @@
 <?xml version="1.0"?>
-<!-- $Id: config.xml,v 1.6 2004-10-23 23:12:23 adam Exp $ -->
+<!-- $Id: config.xml,v 1.8 2005-02-11 15:19:07 adam Exp $ -->
 <proxy xmlns="http://indexdata.dk/yazproxy/schema/0.8/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://indexdata.dk/yazproxy/schema/0.8/ yazproxy.xsd"
 >
 <!-- Config can be checked with xerces-c++: PParse -n -s config.xml -->
   <target name="localhost" default="1">
+    <negotiation-charset>iso-8859-1</negotiation-charset>
     <url>localhost:9999</url>
     <target-timeout>30</target-timeout>
     <client-timeout>60</client-timeout>
+    <authentication handler="pipe" args="authenticate.pl"/>
     <keepalive>
       <bandwidth>1000000</bandwidth>
       <pdu>1000</pdu>
     <syntax type="xml" marcxml="1"/>
     <syntax type="*" error="238"/>
     <preinit>0</preinit>
-    <explain xmlns="http://explain.z3950.org/dtd/2.0/">
-       <serverInfo>
-       <host>localhost</host>
-       <port>9000</port>
-       <database>gils</database>
-       </serverInfo>
-    </explain>
+    <xi:include href="explain.xml"/>
     <cql2rpn>pqf.properties</cql2rpn>
-    <authentication>adam/x</authentication>
   </target>
   <target name="*">
     <target-timeout>60</target-timeout>
@@ -43,4 +39,5 @@
   </target>
   <max-clients>50</max-clients>
   <log>client-requests server-requests</log>
+  <module>../src/.libs/mod_proxy_sample.so</module>
 </proxy>