288d789996985bd66dfab57b20ba813887a63b1a
[metaproxy-moved-to-github.git] / etc / config2.xml
1 <?xml version="1.0"?>
2 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
3   <start route="start"/>
4   <filters>
5     <filter id="frontend" type="frontend_net">
6       <threads>10</threads>
7       <port>@:9000</port>
8     </filter>
9   </filters>
10   <routes>
11     <route id="start">
12       <filter refid="frontend"/>
13       <filter type="log">
14         <message>F</message>
15       </filter>
16       <filter type="auth_simple">
17         <userRegister>../etc/example.simple-auth</userRegister>
18       </filter>
19       <filter type="virt_db">
20         <virtual>
21           <database>loc</database>
22           <target>z3950.loc.gov:7090/voyager</target>
23         </virtual>
24         <virtual>
25           <database>idgils</database>
26           <target>indexdata.dk/gils</target>
27         </virtual>
28         <virtual>
29           <database>Default</database>
30           <target>localhost:9999/Default</target>
31         </virtual>
32         <virtual route="test">
33           <database>dummy</database>
34           <target>something_for_backend_test_to_know</target>
35         </virtual>
36         <virtual>
37           <database>all</database>
38           <target>z3950.loc.gov:7090/voyager</target>
39           <target>indexdata.dk/gils</target>
40           <target>localhost:9999/Default</target>
41         </virtual>
42       </filter>
43       <filter type="auth_simple">
44         <targetRegister>../etc/example.target-auth</targetRegister>
45         <discardUnauthorisedTargets/>
46       </filter>
47       <filter type="multi">
48       </filter>
49       <filter type="log">
50         <message>B</message>
51       </filter>
52       <filter type="z3950_client">
53         <timeout>30</timeout>
54       </filter>
55       <filter type="bounce"/>
56     </route>
57     <route id="test">
58       <filter type="log">
59        <message>T</message>
60       </filter>
61       <filter type="backend_test"/>
62       <filter type="bounce"/>
63     </route>
64   </routes>
65 </metaproxy>
66