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