lp1863252 toward geosort
[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.courses</service>
31           <service>open-ils.curbside</service>
32           <service>open-ils.fielder</service>
33           <service>open-ils.pcrud</service>
34           <service>open-ils.permacrud</service>
35           <service>open-ils.reporter</service>
36           <service>open-ils.resolver</service>
37           <service>open-ils.search</service>
38           <service>open-ils.supercat</service>
39           <service>open-ils.url_verify</service>
40           <service>open-ils.vandelay</service>
41           <service>open-ils.serial</service>
42           <service>open-ils.ebook_api</service>
43         </services>
44       </router>
45
46       <router>
47         <!--
48           This is the private router.  All applications must register with 
49           this router, so no explicit <services> section is required
50         -->
51         <name>router</name>
52         <domain>private.localhost</domain>
53       </router>
54     </routers>
55
56     <!-- Our domain should match that of the private router -->
57     <domain>private.localhost</domain>
58     <username>opensrf</username>
59     <passwd>password</passwd>
60     <port>5222</port>
61
62     <!-- 
63       Name of the router used on our private domain.  
64       This should match one of the <name> of the private router above.
65      -->
66     <router_name>router</router_name>
67
68     <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
69     <!--
70       <logfile>syslog</logfile>
71       <syslog>local0</syslog>
72       <actlog>local1</actlog>
73      -->
74     <loglevel>3</loglevel>
75     <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
76   </opensrf>
77   <!-- 
78     The section between <gateway>...</gateway> is a standard OpenSRF C
79     stack configuration file
80   -->
81   <gateway>
82     <client>true</client>
83     <router_name>router</router_name>
84
85     <!-- The gateway connects to the public domain for security -->
86     <domain>public.localhost</domain>
87
88     <!-- This section will be soon deprecated for multi-domain mode... -->
89     <services>
90       <service>opensrf.math</service>
91       <service>opensrf.dbmath</service>
92       <service>open-ils.cat</service>
93       <service>open-ils.search</service>
94       <service>open-ils.circ</service>
95       <service>open-ils.actor</service>
96       <service>open-ils.auth</service>
97       <service>open-ils.auth_proxy</service>
98       <service>open-ils.collections</service>
99       <service>open-ils.reporter</service>
100     </services>
101
102     <!-- jabber login info -->
103     <username>opensrf</username>
104     <passwd>password</passwd>
105     <port>5222</port>
106     <loglevel>3</loglevel>
107     <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
108     <!--
109       <logfile>syslog</logfile>
110       <syslog>local6</syslog>
111       <actlog>local1</actlog>
112     -->
113   </gateway>
114   <!-- ======================================================================================== -->
115   <routers>
116     <router>
117       <!-- public router -->
118       <trusted_domains>
119         <!-- 
120           Allow private services to register with this router 
121           and public client to send requests to this router. 
122         -->
123         <server>private.localhost</server>
124
125         <!-- 
126           Also allow private clients to send to the router so it
127           can receive error messages
128         -->
129         <client>private.localhost</client>
130         <client>public.localhost</client>
131
132       </trusted_domains>
133       <transport>
134         <server>public.localhost</server>
135         <port>5222</port>
136         <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
137         <username>router</username>
138         <password>password</password>
139         <resource>router</resource>
140         <connect_timeout>10</connect_timeout>
141         <max_reconnect_attempts>5</max_reconnect_attempts>
142       </transport>
143       <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
144       <!--
145         <logfile>syslog</logfile>
146         <syslog>local2</syslog>
147       -->
148       <loglevel>2</loglevel>
149     </router>
150     <router>
151       <!-- private router -->
152       <trusted_domains>
153         <server>private.localhost</server>
154         <!-- 
155           Only clients on the private domain can send requests to this router
156          -->
157         <client>private.localhost</client>
158       </trusted_domains>
159       <transport>
160         <server>private.localhost</server>
161         <port>5222</port>
162         <username>router</username>
163         <password>password</password>
164         <resource>router</resource>
165         <connect_timeout>10</connect_timeout>
166         <max_reconnect_attempts>5</max_reconnect_attempts>
167       </transport>
168       <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
169       <!--
170         <logfile>syslog</logfile>
171         <syslog>local2</syslog>
172       -->
173       <loglevel>2</loglevel>
174     </router>
175   </routers>
176   <!-- ======================================================================================== -->
177
178   <!-- Any methods which match any of these match_string node values will     
179        have their params redacted from lower-level input logging.             
180        Adjust these examples as needed. -->      
181   <shared>
182     <log_protect>
183       <match_string>open-ils.auth.authenticate.verify</match_string>
184       <match_string>open-ils.auth.authenticate.complete</match_string>
185       <match_string>open-ils.auth.login</match_string>
186       <match_string>open-ils.auth_proxy.login</match_string>
187       <match_string>open-ils.actor.patron.password_reset.commit</match_string>
188       <match_string>open-ils.actor.user.password</match_string>
189       <match_string>open-ils.actor.user.username</match_string>
190       <match_string>open-ils.actor.user.email</match_string>
191       <match_string>open-ils.actor.patron.update</match_string>
192       <match_string>open-ils.cstore.direct.actor.user.create</match_string>
193       <match_string>open-ils.cstore.direct.actor.user.update</match_string>
194       <match_string>open-ils.cstore.direct.actor.user.delete</match_string>
195       <match_string>open-ils.search.z3950.apply_credentials</match_string>
196       <match_string>open-ils.geo</match_string>
197       <match_string>open-ils.actor.geo</match_string>
198     </log_protect>
199   </shared>
200 </config>