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