added a multidomain opensrf_core.xml example. updated the basic opensrf_core.xml...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 5 Mar 2008 22:39:08 +0000 (22:39 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 5 Mar 2008 22:39:08 +0000 (22:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8871 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/opensrf_core.xml.example
Open-ILS/examples/opensrf_core.xml.example.multidomain [new file with mode: 0644]

index d5b3530..2738453 100644 (file)
@@ -7,20 +7,12 @@
     <!-- The OpenSRF Routers's name on the network -->
     <!-- You should never need to change this -->
     <router_name>router</router_name>
-
-    <routers>
-
-      <!-- List of router domains we should register with. 
-        We must at least have our default jabber domain in here -->
-      <router>localhost</router>
-
+       <routers>
+        <router>localhost</router>
     </routers>
-    <domains>
-
-      <!-- Our jabber domain, currently only one domain is supported -->
-      <domain>localhost</domain>
 
-    </domains>
+    <!-- Our jabber domain -->
+    <domain>localhost</domain>
     <username>client</username>
     <passwd>mypass</passwd>
     <port>5222</port>
 
   <!-- ======================================================================================== -->
 
-  <router>
-
-    <!-- do not change -->
-    <component>0</component>
-
-    <trusted_domains>
-
-      <!-- Trusted servers are allowed to register apps with the router -->
-      <server>localhost</server>
-
-      <!-- Trusted clients are allowed to send packets through the router -->
-      <client>localhost</client>
-
-    </trusted_domains>
-
-    <transport>
-
-      <!-- jabber server are we connecting to -->
-      <server>localhost</server>
-      <port>5222</port>
-
-      <!-- if this is changed, all "router_name" settings 
-                will need to be updated to match this setting -->
-      <username>router</username>
-      <password>mypassword</password>
-
-      <!-- router's jabber resource -->
-      <!-- do not change this -->
-      <resource>router</resource>
-      <connect_timeout>10</connect_timeout>
-      <max_reconnect_attempts>5</max_reconnect_attempts>
-
-    </transport>
-    <logfile>/openils/var/log/router.log</logfile>
-    <loglevel>3</loglevel>
-
-  </router>
+  <routers>
+    <router>
+  
+      <!-- do not change -->
+      <component>0</component>
+  
+      <trusted_domains>
+  
+        <!-- Trusted servers are allowed to register apps with the router -->
+        <server>localhost</server>
+  
+        <!-- Trusted clients are allowed to send packets through the router -->
+        <client>localhost</client>
+  
+      </trusted_domains>
+  
+      <transport>
+  
+        <!-- jabber server are we connecting to -->
+        <server>localhost</server>
+        <port>5222</port>
+  
+        <!-- if this is changed, all "router_name" settings 
+                  will need to be updated to match this setting -->
+        <username>router</username>
+        <password>mypassword</password>
+  
+        <!-- router's jabber resource -->
+        <!-- do not change this -->
+        <resource>router</resource>
+        <connect_timeout>10</connect_timeout>
+        <max_reconnect_attempts>5</max_reconnect_attempts>
+  
+      </transport>
+      <logfile>/openils/var/log/router.log</logfile>
+      <loglevel>3</loglevel>
+    </router>
+
+  </routers>
 
   <!-- ======================================================================================== -->
 
diff --git a/Open-ILS/examples/opensrf_core.xml.example.multidomain b/Open-ILS/examples/opensrf_core.xml.example.multidomain
new file mode 100644 (file)
index 0000000..c95cca9
--- /dev/null
@@ -0,0 +1,140 @@
+<?xml version='1.0'?>
+<config>
+
+    <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
+
+       <opensrf>
+
+               <routers>
+            <!-- define the list of routers our services will register with -->
+                       <router>
+                <!-- This is the public router.  On this router, we only register applications
+                     which should be accessible to everyone on the opensrf network -->
+                <name>router</name>
+                <domain>public.localhost</domain>
+                <services>
+                                   <service>opensrf.math</service> 
+                                   <service>open-ils.cat</service> 
+                                   <service>open-ils.supercat</service> 
+                                   <service>open-ils.search</service> 
+                                   <service>open-ils.circ</service> 
+                                   <service>open-ils.actor</service> 
+                                   <service>open-ils.auth</service> 
+                                   <service>open-ils.collections</service>  
+                                   <service>open-ils.reporter</service>  
+                </services>
+            </router>
+
+                       <router>
+                <!-- This is the private router.  All applications must register with 
+                    this router, so no explicit <services> section is required -->
+                <name>router</name>
+                <domain>private.localhost</domain>
+            </router>
+               </routers>
+
+
+        <!-- Our domain should match that of the private router -->
+               <domain>private.localhost</domain>
+               <username>osrf</username>
+               <passwd>osrf</passwd>
+               <port>5222</port>
+
+               <logfile>/openils/var/log/osrfsys.log</logfile>
+        <!--
+               <logfile>syslog</logfile>
+               <syslog>local0</syslog>
+               <actlog>local1</actlog>
+        -->
+               <loglevel>3</loglevel>
+               <settings_config>/openils/conf/opensrf.xml</settings_config>
+       </opensrf>
+
+
+       <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
+       <gateway>
+
+               <client>true</client>
+               <router_name>router</router_name>
+
+        <!-- The gateway connects to the public domain for security -->
+               <domain>public.localhost</domain>
+
+      <!-- this section will be soon deprecated for multi-domain mode... -->
+      <services>
+         <service>opensrf.math</service>
+         <service>opensrf.dbmath</service>
+         <service>open-ils.cat</service>
+         <service>open-ils.search</service>
+         <service>open-ils.circ</service>
+         <service>open-ils.actor</service>
+         <service>open-ils.auth</service>
+         <service>open-ils.collections</service>
+         <service>open-ils.reporter</service>
+      </services>
+
+               <!-- jabber login info -->
+               <username>osrf</username>
+               <passwd>osrf</passwd>
+               <port>5222</port>
+               <loglevel>3</loglevel>
+               <logfile>/openils/var/log/gateway.log</logfile>
+        <!--
+       <logfile>syslog</logfile>
+               <syslog>local6</syslog>
+               <actlog>local1</actlog>
+        -->
+       </gateway>
+
+       <!-- ======================================================================================== -->
+
+    <routers>
+        <router> <!-- public router -->
+            <trusted_domains>
+                <!-- allow private services to register with this router 
+                     and public client to send requests to this router. -->
+                <server>private.localhost</server>
+                <client>public.localhost</client>
+            </trusted_domains>
+            <transport>
+                <server>public.localhost</server>
+                <port>5222</port>
+                <unixpath>/openils/var/sock/unix_sock</unixpath>
+                <username>router</username>
+                <password>osrf</password>
+                <resource>router</resource>
+                <connect_timeout>10</connect_timeout>
+                <max_reconnect_attempts>5</max_reconnect_attempts>
+            </transport>
+            <logfile>syslog</logfile>
+            <syslog>local2</syslog>
+            <loglevel>5</loglevel>
+        </router>
+        <router> <!-- private router -->
+            <trusted_domains>
+                <server>private.localhost</server>
+                <!-- only clients on the private domain can send requests to this router -->
+                <client>private.localhost</client>
+            </trusted_domains>
+            <transport>
+                <server>private.localhost</server>
+                <port>5222</port>
+                <username>router</username>
+                <password>osrf</password>
+                <resource>router</resource>
+                <connect_timeout>10</connect_timeout>
+                <max_reconnect_attempts>5</max_reconnect_attempts>
+            </transport>
+            <logfile>syslog</logfile>
+            <syslog>local2</syslog>
+            <loglevel>4</loglevel>
+        </router>
+    </routers>
+
+       <!-- ======================================================================================== -->
+
+</config>
+
+
+
+