]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/opensrf_core.xml.example
LP1615805 No inputs after submit in patron search (AngularJS)
[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.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
60     <!-- Ejabberd -->
61     <passwd>password</passwd>
62     <port>5222</port>
63     <!-- ===  -->
64
65     <!-- Redis -->
66     <!--
67     <passwd>OPENSRF_BUS_PASSWORD</passwd>
68     <port>6379</port>
69     -->
70     <!-- ===  -->
71
72     <!-- 
73       Name of the router used on our private domain.  
74       This should match one of the <name> of the private router above.
75      -->
76     <router_name>router</router_name>
77
78     <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
79     <!--
80       <logfile>syslog</logfile>
81       <syslog>local0</syslog>
82       <actlog>local1</actlog>
83      -->
84     <loglevel>3</loglevel>
85     <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
86   </opensrf>
87   <!-- 
88     The section between <gateway>...</gateway> is a standard OpenSRF C
89     stack configuration file
90   -->
91   <gateway>
92     <client>true</client>
93     <router_name>router</router_name>
94
95     <!-- The gateway connects to the public domain for security -->
96     <domain>public.localhost</domain>
97
98     <!-- This section will be soon deprecated for multi-domain mode... -->
99     <services>
100       <service>opensrf.math</service>
101       <service>opensrf.dbmath</service>
102       <service>open-ils.cat</service>
103       <service>open-ils.search</service>
104       <service>open-ils.circ</service>
105       <service>open-ils.actor</service>
106       <service>open-ils.auth</service>
107       <service>open-ils.auth_proxy</service>
108       <service>open-ils.collections</service>
109       <service>open-ils.reporter</service>
110     </services>
111
112     <!-- Ejabberd -->
113     <username>opensrf</username>
114     <passwd>password</passwd>
115     <port>5222</port>
116     <!-- == -->
117
118     <!-- Redis -->
119     <!--
120     <username>gateway</username>
121     <passwd>GATEWAY_BUS_PASSWORD</passwd>
122     <port>6379</port>
123     -->
124
125     <loglevel>3</loglevel>
126     <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
127     <!--
128       <logfile>syslog</logfile>
129       <syslog>local6</syslog>
130       <actlog>local1</actlog>
131     -->
132   </gateway>
133   <!-- ======================================================================================== -->
134   <routers>
135     <router>
136       <!-- public router -->
137       <trusted_domains>
138         <!-- 
139           Allow private services to register with this router 
140           and public client to send requests to this router. 
141         -->
142         <server>private.localhost</server>
143
144         <!-- 
145           Also allow private clients to send to the router so it
146           can receive error messages
147         -->
148         <client>private.localhost</client>
149         <client>public.localhost</client>
150
151       </trusted_domains>
152       <transport>
153         <server>public.localhost</server>
154
155         <!-- Ejabberd -->
156         <port>5222</port>
157         <password>password</password>
158
159         <!-- Redis -->
160         <!--
161         <port>6379</port>
162         <password>ROUTER_BUS_PASSWORD</password>
163         -->
164
165         <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
166         <username>router</username>
167         <resource>router</resource>
168         <connect_timeout>10</connect_timeout>
169         <max_reconnect_attempts>5</max_reconnect_attempts>
170       </transport>
171       <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
172       <!--
173         <logfile>syslog</logfile>
174         <syslog>local2</syslog>
175       -->
176       <loglevel>2</loglevel>
177     </router>
178     <router>
179       <!-- private router -->
180       <trusted_domains>
181         <server>private.localhost</server>
182         <!-- 
183           Only clients on the private domain can send requests to this router
184          -->
185         <client>private.localhost</client>
186       </trusted_domains>
187       <transport>
188         <server>private.localhost</server>
189
190         <!-- Ejabberd -->
191         <port>5222</port>
192         <password>password</password>
193
194         <!-- Redis -->
195         <!--
196         <port>6379</port>
197         <password>ROUTER_BUS_PASSWORD</password>
198         -->
199
200         <username>router</username>
201         <resource>router</resource>
202         <connect_timeout>10</connect_timeout>
203         <max_reconnect_attempts>5</max_reconnect_attempts>
204       </transport>
205       <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
206       <!--
207         <logfile>syslog</logfile>
208         <syslog>local2</syslog>
209       -->
210       <loglevel>2</loglevel>
211     </router>
212   </routers>
213   <!-- ======================================================================================== -->
214
215   <!-- Any methods which match any of these match_string node values will     
216        have their params redacted from lower-level input logging.             
217        Adjust these examples as needed. -->      
218   <shared>
219     <log_protect>
220       <match_string>open-ils.auth.authenticate.verify</match_string>
221       <match_string>open-ils.auth.authenticate.complete</match_string>
222       <match_string>open-ils.auth.login</match_string>
223       <match_string>open-ils.auth_proxy.login</match_string>
224       <match_string>open-ils.actor.patron.password_reset.commit</match_string>
225       <match_string>open-ils.actor.user.password</match_string>
226       <match_string>open-ils.actor.user.username</match_string>
227       <match_string>open-ils.actor.user.email</match_string>
228       <match_string>open-ils.actor.patron.update</match_string>
229       <match_string>open-ils.cstore.direct.actor.user.create</match_string>
230       <match_string>open-ils.cstore.direct.actor.user.update</match_string>
231       <match_string>open-ils.cstore.direct.actor.user.delete</match_string>
232       <match_string>open-ils.search.z3950.apply_credentials</match_string>
233       <match_string>open-ils.geo</match_string>
234       <match_string>open-ils.actor.geo</match_string>
235     </log_protect>
236   </shared>
237 </config>