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