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