HTTP proxy example
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 May 2013 11:00:35 +0000 (13:00 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 May 2013 11:00:35 +0000 (13:00 +0200)
etc/config-proxy-with-loggging.xml [deleted file]
etc/config-proxy.xml [new file with mode: 0644]

diff --git a/etc/config-proxy-with-loggging.xml b/etc/config-proxy-with-loggging.xml
deleted file mode 100644 (file)
index 0e28ab6..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0"?>
-<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
-  <start route="start"/>
-  <!-- sample config which illustrates the use of http_file filter.. -->
-  <filters>
-    <filter id="frontend" type="frontend_net">
-      <threads>20</threads>
-      <port>@:9000</port> 
-      <message>FN</message>
-      <stat-req>/fn_stat</stat-req>
-    </filter>
-  </filters>
-  <routes>
-    <route id="start">
-      <filter refid="frontend"/>
-      <filter type="http_file">
-       <mimetypes>/etc/mime.types</mimetypes>
-       <area>
-         <documentroot>.</documentroot>
-         <prefix>/etc</prefix>
-       </area>
-      </filter>
-      <filter type="log"><category access="false" line="true" apdu="true" /></filter>
-<!--
-      <filter type="http_rewrite1">
-        <replace content-type="text/html" pattern="YAZ" replacement="yaz"/>
-      </filter>
--->
-      <filter type="http_client">
-<!--
-       <proxy>localhost:9999</proxy>
--->
-      </filter>
-      <filter type="bounce"/>
-    </route>
-  </routes>
-</metaproxy>
-
diff --git a/etc/config-proxy.xml b/etc/config-proxy.xml
new file mode 100644 (file)
index 0000000..f3b522d
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+  <start route="start"/>
+  <!-- sample config which illustrates the use of http_file filter.. -->
+  <routes>
+    <route id="start">
+      <filter type="frontend_net">
+        <threads>10</threads>
+        <port>tcp:@:9000</port>
+        <port cert_fname="ztest.pem">ssl:@:9001</port>
+      </filter>
+      <filter type="log">
+        <message>M</message>
+        <category apdu="true"/>
+      </filter>
+      <filter type="http_client">
+        <!-- <default-host>https://localhost:9999</default-host> -->
+        <!-- <proxy>localhost:3128</proxy> -->
+      </filter>
+    </route>
+  </routes>
+</metaproxy>
+