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