4 Example opensrf config file for OpenILS
5 See opensrf.xml.example for core config documentation
6 For non-core config info, see the inline documentation within this file
9 <opensrf version='0.0.1'>
15 <log>/openils/var/log</log>
16 <sock>/openils/var/sock</sock>
17 <pid>/openils/var/pid</pid>
19 <!-- xsl stylesheets go here -->
20 <xsl>/openils/var/xsl</xsl>
21 <conf>/openils/var/conf</conf>
22 <script>/openils/var/data</script>
23 <script_lib>/openils/var/data</script_lib>
26 <server_type>prefork</server_type>
28 <!-- script for exception strings -->
29 <ex_script>/openils/var/templates/strings/ex.ttk</ex_script>
30 <perm_script>/openils/var/templates/strings/perm.ttk</perm_script>
31 <ils_events>/openils/var/data/ils_events.xml</ils_events>
35 <!-- OpenILS currently only searches the 'oclc' database when
36 doing Z39.50 importing... -->
38 <host>zcat.oclc.org</host>
41 <attr>12</attr> <!-- which @attr (tcn search) we're searching -->
42 <username>my_username</username>
43 <password>my_password</password>
46 <loc> <!-- loc has not been incorporated into the system yet -->
48 <host>z3950.loc.gov</host>
63 <server>127.0.0.1:10101</server>
65 <max_cache_time>86400</max_cache_time>
72 <keepalive>1</keepalive>
73 <stateless>1</stateless>
74 <language>perl</language>
75 <implementation>OpenSRF::Application::Persist</implementation>
76 <max_requests>97</max_requests>
78 <unix_sock>opensrf.persist_unix.sock</unix_sock>
79 <unix_pid>opensrf.persist_unix.pid</unix_pid>
80 <max_requests>1000</max_requests>
81 <unix_log>opensrf.persist_unix.log</unix_log>
82 <min_children>5</min_children>
83 <max_children>25</max_children>
84 <min_spare_children>2</min_spare_children>
85 <max_spare_children>5</max_spare_children>
89 <dbfile>/openils/var/db/persist.db</dbfile>
94 <!-- Authentication server -->
96 <keepalive>5</keepalive>
97 <stateless>1</stateless>
98 <language>C</language>
99 <implementation>oils_auth.so</implementation>
100 <max_requests>93</max_requests>
103 <unix_sock>open-ils.auth_unix.sock</unix_sock>
104 <unix_pid>open-ils.auth_unix.pid</unix_pid>
105 <max_requests>1000</max_requests>
106 <unix_log>open-ils.auth_unix.log</unix_log>
107 <min_children>5</min_children>
108 <max_children>35</max_children>
109 <min_spare_children>2</min_spare_children>
110 <max_spare_children>5</max_spare_children>
114 <!-- if true, user sessions will be persisted via the OpenSRF persist
115 server in addition to memcache -->
116 <persist_users>0</persist_users>
118 <!-- default session timeouts by login type -->
122 <override>300</override> <!-- temporary login -->
130 <!-- Generic search server -->
132 <keepalive>5</keepalive>
133 <stateless>1</stateless>
134 <language>perl</language>
135 <implementation>OpenILS::Application::Search</implementation>
136 <max_requests>93</max_requests>
139 <unix_sock>open-ils.search_unix.sock</unix_sock>
140 <unix_pid>open-ils.search_unix.pid</unix_pid>
141 <max_requests>1000</max_requests>
142 <unix_log>open-ils.search_unix.log</unix_log>
143 <min_children>5</min_children>
144 <max_children>35</max_children>
145 <min_spare_children>2</min_spare_children>
146 <max_spare_children>5</max_spare_children>
150 <memcache>127.0.0.1:10101</memcache>
151 <max_cache_time>3600</max_cache_time>
152 <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
155 Example added content handler. If this is not defined, the default
156 content handler is used, which returns empty sets for all methods
159 <implementation>Evergreen::Application::Search::AddedContent::ContentCafe</implementation>
160 <host>MY_CONTENT_HOST</host>
161 <username>MY_CONTENT_USERNAME</username>
162 <password>MY_CONTENT_PASSWORD</password>
171 <!-- server for accessing user info -->
173 <keepalive>5</keepalive>
174 <stateless>1</stateless>
175 <language>perl</language>
176 <implementation>OpenILS::Application::Actor</implementation>
177 <max_requests>93</max_requests>
180 <unix_sock>open-ils.actor_unix.sock</unix_sock>
181 <unix_pid>open-ils.actor_unix.pid</unix_pid>
182 <max_requests>1000</max_requests>
183 <unix_log>open-ils.actor_unix.log</unix_log>
184 <min_children>5</min_children>
185 <max_children>35</max_children>
186 <min_spare_children>2</min_spare_children>
187 <max_spare_children>5</max_spare_children>
194 <!-- server for editing title, etc... -->
196 <keepalive>5</keepalive>
197 <stateless>1</stateless>
198 <language>perl</language>
199 <implementation>OpenILS::Application::Cat</implementation>
200 <max_requests>199</max_requests>
203 <unix_sock>open-ils.cat_unix.sock</unix_sock>
204 <unix_pid>open-ils.cat_unix.pid</unix_pid>
205 <max_requests>1000</max_requests>
206 <unix_log>open-ils.cat_unix.log</unix_log>
207 <min_children>5</min_children>
208 <max_children>25</max_children>
209 <min_spare_children>2</min_spare_children>
210 <max_spare_children>5</max_spare_children>
215 <book>/path/to/templates/marc/book.xml</book>
224 <keepalive>3</keepalive>
225 <stateless>1</stateless>
226 <language>C</language>
227 <implementation>osrf_math.so</implementation>
228 <max_requests>97</max_requests>
230 <unix_sock>opensrf.math_unix.sock</unix_sock>
231 <unix_pid>opensrf.math_unix.pid</unix_pid>
232 <max_requests>1000</max_requests>
233 <unix_log>opensrf.math_unix.log</unix_log>
234 <min_children>5</min_children>
235 <max_children>15</max_children>
236 <min_spare_children>2</min_spare_children>
237 <max_spare_children>5</max_spare_children>
242 <keepalive>3</keepalive>
243 <stateless>1</stateless>
244 <language>C</language>
245 <implementation>osrf_dbmath.so</implementation>
246 <max_requests>99</max_requests>
248 <max_requests>1000</max_requests>
249 <unix_log>opensrf.dbmath_unix.log</unix_log>
250 <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
251 <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
252 <min_children>5</min_children>
253 <max_children>15</max_children>
254 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
258 <!-- Circulation server -->
260 <keepalive>3</keepalive>
261 <stateless>1</stateless>
262 <language>perl</language>
263 <implementation>OpenILS::Application::Circ</implementation>
264 <max_requests>99</max_requests>
266 <max_requests>1000</max_requests>
267 <unix_log>open-ils.circ_unix.log</unix_log>
268 <unix_sock>open-ils.circ_unix.sock</unix_sock>
269 <unix_pid>open-ils.circ_unix.pid</unix_pid>
270 <min_children>5</min_children>
271 <max_children>25</max_children>
272 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
277 <permission>permit_circ.rules</permission>
278 <duration>calculate_duration.rules</duration>
279 <recurring_fines>calculate_recurring_fines.rules</recurring_fines>
280 <max_fines>calculate_max_fines.rules</max_fines>
281 <permit_hold>permit_hold.rules</permit_hold>
282 <permit_renew>permit_renew.rules</permit_renew>
285 <script_path>/openils/var/circ/</script_path>
287 <circ_permit_patron>circ_permit_patron.js</circ_permit_patron>
288 <circ_permit_copy>circ_permit_copy.js</circ_permit_copy>
289 <circ_duration>circ_duration.js</circ_duration>
290 <circ_recurring_fines>circ_recurring_fines.js</circ_recurring_fines>
291 <circ_max_fines>circ_max_fines.js</circ_max_fines>
292 <circ_permit_renew>circ_permit_renew.js</circ_permit_renew>
293 <circ_permit_hold>circ_permit_hold.js</circ_permit_hold>
300 <!-- Database storage server -->
302 <keepalive>3</keepalive>
303 <stateless>1</stateless>
304 <language>perl</language>
305 <implementation>OpenILS::Application::Storage</implementation>
307 <max_requests>1000</max_requests>
308 <unix_log>storage_unix.log</unix_log>
309 <unix_sock>storage_unix.sock</unix_sock>
310 <unix_pid>storage_unix.pid</unix_pid>
311 <max_requests>1000</max_requests>
312 <min_children>10</min_children>
313 <max_children>50</max_children>
314 <min_spare_children>2</min_spare_children>
315 <max_spare_children>5</max_spare_children>
324 <user>postgres</user>
325 <host>127.0.0.1</host>
328 <client_encoding>SQL_ASCII</client_encoding>
336 <keepalive>1</keepalive>
337 <stateless>1</stateless>
338 <language>perl</language>
339 <implementation>OpenSRF::Application::Settings</implementation>
340 <max_requests>17</max_requests>
342 <unix_sock>opensrf.settings_unix.sock</unix_sock>
343 <unix_pid>opoensrf.settings_unix.pid</unix_pid>
344 <max_requests>1000</max_requests>
345 <unix_log>opensrf.settings_unix.log</unix_log>
346 <min_children>5</min_children>
347 <max_children>15</max_children>
348 <min_spare_children>3</min_spare_children>
349 <max_spare_children>5</max_spare_children>
360 <!-- single host install, everything goes into one host section -->
361 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
364 <!-- opensrf builtin apps -->
365 <appname>opensrf.math</appname>
366 <appname>opensrf.dbmath</appname>
367 <appname>opensrf.settings</appname>
369 <!-- openils apps -->
370 <appname>open-ils.cat</appname>
371 <appname>open-ils.search</appname>
372 <appname>open-ils.circ</appname>
373 <appname>open-ils.actor</appname>
374 <appname>open-ils.auth</appname>
375 <appname>open-ils.storage</appname>
378 </myhost.mydomain.com>