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