]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/opensrf_core.xml.example.multidomain
changed name to .xml since the file must be valid xml for mod_xmlent to eat it
[Evergreen.git] / Open-ILS / examples / opensrf_core.xml.example.multidomain
1 <?xml version='1.0'?>
2 <config>
3
4     <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
5
6         <opensrf>
7
8                 <routers>
9             <!-- define the list of routers our services will register with -->
10                         <router>
11                 <!-- This is the public router.  On this router, we only register applications
12                      which should be accessible to everyone on the opensrf network -->
13                 <name>router</name>
14                 <domain>public.localhost</domain>
15                 <services>
16                                     <service>opensrf.math</service> 
17                                     <service>open-ils.cat</service> 
18                                     <service>open-ils.supercat</service> 
19                                     <service>open-ils.search</service> 
20                                     <service>open-ils.circ</service> 
21                                     <service>open-ils.actor</service> 
22                                     <service>open-ils.auth</service> 
23                                     <service>open-ils.collections</service>  
24                                     <service>open-ils.reporter</service>  
25                 </services>
26             </router>
27
28                         <router>
29                 <!-- This is the private router.  All applications must register with 
30                     this router, so no explicit <services> section is required -->
31                 <name>router</name>
32                 <domain>private.localhost</domain>
33             </router>
34                 </routers>
35
36
37         <!-- Our domain should match that of the private router -->
38                 <domain>private.localhost</domain>
39                 <username>osrf</username>
40                 <passwd>osrf</passwd>
41                 <port>5222</port>
42
43                 <logfile>/openils/var/log/osrfsys.log</logfile>
44         <!--
45                 <logfile>syslog</logfile>
46                 <syslog>local0</syslog>
47                 <actlog>local1</actlog>
48         -->
49                 <loglevel>3</loglevel>
50                 <settings_config>/openils/conf/opensrf.xml</settings_config>
51         </opensrf>
52
53
54         <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
55         <gateway>
56
57                 <client>true</client>
58                 <router_name>router</router_name>
59
60         <!-- The gateway connects to the public domain for security -->
61                 <domain>public.localhost</domain>
62
63       <!-- this section will be soon deprecated for multi-domain mode... -->
64       <services>
65          <service>opensrf.math</service>
66          <service>opensrf.dbmath</service>
67          <service>open-ils.cat</service>
68          <service>open-ils.search</service>
69          <service>open-ils.circ</service>
70          <service>open-ils.actor</service>
71          <service>open-ils.auth</service>
72          <service>open-ils.collections</service>
73          <service>open-ils.reporter</service>
74       </services>
75
76                 <!-- jabber login info -->
77                 <username>osrf</username>
78                 <passwd>osrf</passwd>
79                 <port>5222</port>
80                 <loglevel>3</loglevel>
81                 <logfile>/openils/var/log/gateway.log</logfile>
82         <!--
83         <logfile>syslog</logfile>
84                 <syslog>local6</syslog>
85                 <actlog>local1</actlog>
86         -->
87         </gateway>
88
89         <!-- ======================================================================================== -->
90
91     <routers>
92         <router> <!-- public router -->
93             <trusted_domains>
94                 <!-- allow private services to register with this router 
95                      and public client to send requests to this router. -->
96                 <server>private.localhost</server>
97                 <!-- also allow private clients to send to the router so it can receive error messages -->
98                 <client>private.localhost</client>
99                 <client>public.localhost</client>
100             </trusted_domains>
101             <transport>
102                 <server>public.localhost</server>
103                 <port>5222</port>
104                 <unixpath>/openils/var/sock/unix_sock</unixpath>
105                 <username>router</username>
106                 <password>osrf</password>
107                 <resource>router</resource>
108                 <connect_timeout>10</connect_timeout>
109                 <max_reconnect_attempts>5</max_reconnect_attempts>
110             </transport>
111             <logfile>syslog</logfile>
112             <syslog>local2</syslog>
113             <loglevel>5</loglevel>
114         </router>
115         <router> <!-- private router -->
116             <trusted_domains>
117                 <server>private.localhost</server>
118                 <!-- only clients on the private domain can send requests to this router -->
119                 <client>private.localhost</client>
120             </trusted_domains>
121             <transport>
122                 <server>private.localhost</server>
123                 <port>5222</port>
124                 <username>router</username>
125                 <password>osrf</password>
126                 <resource>router</resource>
127                 <connect_timeout>10</connect_timeout>
128                 <max_reconnect_attempts>5</max_reconnect_attempts>
129             </transport>
130             <logfile>syslog</logfile>
131             <syslog>local2</syslog>
132             <loglevel>4</loglevel>
133         </router>
134     </routers>
135
136         <!-- ======================================================================================== -->
137
138 </config>
139
140
141
142