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>
24 <server_type>prefork</server_type>
26 <!-- script for exception strings -->
27 <ex_script>/openils/var/templates/strings/ex.ttk</ex_script>
28 <perm_script>/openils/var/templates/strings/perm.ttk</perm_script>
29 <ils_events>/openils/var/data/ils_events.xml</ils_events>
33 <!-- OpenILS currently only searches the 'oclc' database when
34 doing Z39.50 importing... -->
36 <host>zcat.oclc.org</host>
39 <attr>12</attr> <!-- which @attr (tcn search) we're searching -->
40 <username>my_username</username>
41 <password>my_password</password>
44 <loc> <!-- loc has not been incorporated into the system yet -->
46 <host>z3950.loc.gov</host>
61 <server>127.0.0.1:10101</server>
63 <max_cache_time>86400</max_cache_time>
70 <keepalive>1</keepalive>
71 <stateless>1</stateless>
72 <language>perl</language>
73 <implementation>OpenSRF::Application::Persist</implementation>
74 <max_requests>97</max_requests>
76 <unix_sock>opensrf.persist_unix.sock</unix_sock>
77 <unix_pid>opensrf.persist_unix.pid</unix_pid>
78 <max_requests>1000</max_requests>
79 <unix_log>opensrf.persist_unix.log</unix_log>
80 <min_children>5</min_children>
81 <max_children>25</max_children>
82 <min_spare_children>2</min_spare_children>
83 <max_spare_children>5</max_spare_children>
87 <dbfile>/openils/var/db/persist.db</dbfile>
92 <!-- Authentication server -->
94 <keepalive>5</keepalive>
95 <stateless>1</stateless>
96 <language>C</language>
97 <implementation>oils_auth.so</implementation>
98 <max_requests>93</max_requests>
101 <unix_sock>open-ils.auth_unix.sock</unix_sock>
102 <unix_pid>open-ils.auth_unix.pid</unix_pid>
103 <max_requests>1000</max_requests>
104 <unix_log>open-ils.auth_unix.log</unix_log>
105 <min_children>5</min_children>
106 <max_children>35</max_children>
107 <min_spare_children>2</min_spare_children>
108 <max_spare_children>5</max_spare_children>
112 <!-- if true, user sessions will be persisted via the OpenSRF persist
113 server in addition to memcache -->
114 <persist_users>0</persist_users>
116 <!-- default session timeouts by login type -->
127 <!-- Generic search server -->
129 <keepalive>5</keepalive>
130 <stateless>1</stateless>
131 <language>perl</language>
132 <implementation>OpenILS::Application::Search</implementation>
133 <max_requests>93</max_requests>
136 <unix_sock>open-ils.search_unix.sock</unix_sock>
137 <unix_pid>open-ils.search_unix.pid</unix_pid>
138 <max_requests>1000</max_requests>
139 <unix_log>open-ils.search_unix.log</unix_log>
140 <min_children>5</min_children>
141 <max_children>35</max_children>
142 <min_spare_children>2</min_spare_children>
143 <max_spare_children>5</max_spare_children>
147 <memcache>127.0.0.1:10101</memcache>
148 <max_cache_time>3600</max_cache_time>
149 <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
152 Example added content handler. If this is not defined, the default
153 content handler is used, which returns empty sets for all methods
156 <implementation>Evergreen::Application::Search::AddedContent::ContentCafe</implementation>
157 <host>MY_CONTENT_HOST</host>
158 <username>MY_CONTENT_USERNAME</username>
159 <password>MY_CONTENT_PASSWORD</password>
168 <!-- server for accessing user info -->
170 <keepalive>5</keepalive>
171 <stateless>1</stateless>
172 <language>perl</language>
173 <implementation>OpenILS::Application::Actor</implementation>
174 <max_requests>93</max_requests>
177 <unix_sock>open-ils.actor_unix.sock</unix_sock>
178 <unix_pid>open-ils.actor_unix.pid</unix_pid>
179 <max_requests>1000</max_requests>
180 <unix_log>open-ils.actor_unix.log</unix_log>
181 <min_children>5</min_children>
182 <max_children>35</max_children>
183 <min_spare_children>2</min_spare_children>
184 <max_spare_children>5</max_spare_children>
191 <!-- server for editing title, etc... -->
193 <keepalive>5</keepalive>
194 <stateless>1</stateless>
195 <language>perl</language>
196 <implementation>OpenILS::Application::Cat</implementation>
197 <max_requests>199</max_requests>
200 <unix_sock>open-ils.cat_unix.sock</unix_sock>
201 <unix_pid>open-ils.cat_unix.pid</unix_pid>
202 <max_requests>1000</max_requests>
203 <unix_log>open-ils.cat_unix.log</unix_log>
204 <min_children>5</min_children>
205 <max_children>25</max_children>
206 <min_spare_children>2</min_spare_children>
207 <max_spare_children>5</max_spare_children>
212 <book>/path/to/templates/marc/book.xml</book>
221 <keepalive>3</keepalive>
222 <stateless>1</stateless>
223 <language>C</language>
224 <implementation>osrf_math.so</implementation>
225 <max_requests>97</max_requests>
227 <unix_sock>opensrf.math_unix.sock</unix_sock>
228 <unix_pid>opensrf.math_unix.pid</unix_pid>
229 <max_requests>1000</max_requests>
230 <unix_log>opensrf.math_unix.log</unix_log>
231 <min_children>5</min_children>
232 <max_children>15</max_children>
233 <min_spare_children>2</min_spare_children>
234 <max_spare_children>5</max_spare_children>
239 <keepalive>3</keepalive>
240 <stateless>1</stateless>
241 <language>C</language>
242 <implementation>osrf_dbmath.so</implementation>
243 <max_requests>99</max_requests>
245 <max_requests>1000</max_requests>
246 <unix_log>opensrf.dbmath_unix.log</unix_log>
247 <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
248 <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
249 <min_children>5</min_children>
250 <max_children>15</max_children>
251 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
255 <!-- Circulation server -->
257 <keepalive>3</keepalive>
258 <stateless>1</stateless>
259 <language>perl</language>
260 <implementation>OpenILS::Application::Circ</implementation>
261 <max_requests>99</max_requests>
263 <max_requests>1000</max_requests>
264 <unix_log>open-ils.circ_unix.log</unix_log>
265 <unix_sock>open-ils.circ_unix.sock</unix_sock>
266 <unix_pid>open-ils.circ_unix.pid</unix_pid>
267 <min_children>5</min_children>
268 <max_children>25</max_children>
269 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
274 <main>/openils/var/circ/circ_main.rules</main>
275 <permission>/openils/var/circ/permit_circ.rules</permission>
276 <duration>/openils/var/circ/calculate_duration.rules</duration>
277 <recurring_fines>/openils/var/circ/calculate_recurring_fines.rules</recurring_fines>
278 <max_fines>/openils/var/circ/calculate_max_fines.rules</max_fines>
279 <permit_hold>/openils/var/circ/permit_hold.rules</permit_hold>
280 <permit_renew>/openils/var/circ/permit_renew.rules</permit_renew>
286 <!-- Database storage server -->
288 <keepalive>3</keepalive>
289 <stateless>1</stateless>
290 <language>perl</language>
291 <implementation>OpenILS::Application::Storage</implementation>
293 <max_requests>1000</max_requests>
294 <unix_log>storage_unix.log</unix_log>
295 <unix_sock>storage_unix.sock</unix_sock>
296 <unix_pid>storage_unix.pid</unix_pid>
297 <max_requests>1000</max_requests>
298 <min_children>10</min_children>
299 <max_children>50</max_children>
300 <min_spare_children>2</min_spare_children>
301 <max_spare_children>5</max_spare_children>
310 <user>postgres</user>
311 <host>127.0.0.1</host>
314 <client_encoding>SQL_ASCII</client_encoding>
322 <keepalive>1</keepalive>
323 <stateless>1</stateless>
324 <language>perl</language>
325 <implementation>OpenSRF::Application::Settings</implementation>
326 <max_requests>17</max_requests>
328 <unix_sock>opensrf.settings_unix.sock</unix_sock>
329 <unix_pid>opoensrf.settings_unix.pid</unix_pid>
330 <max_requests>1000</max_requests>
331 <unix_log>opensrf.settings_unix.log</unix_log>
332 <min_children>5</min_children>
333 <max_children>15</max_children>
334 <min_spare_children>3</min_spare_children>
335 <max_spare_children>5</max_spare_children>
346 <!-- single host install, everything goes into one host section -->
347 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
350 <!-- opensrf builtin apps -->
351 <appname>opensrf.math</appname>
352 <appname>opensrf.dbmath</appname>
353 <appname>opensrf.settings</appname>
355 <!-- openils apps -->
356 <appname>open-ils.cat</appname>
357 <appname>open-ils.search</appname>
358 <appname>open-ils.circ</appname>
359 <appname>open-ils.actor</appname>
360 <appname>open-ils.auth</appname>
361 <appname>open-ils.storage</appname>
364 </myhost.mydomain.com>