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