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