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