]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/opensrf.xml.example
82c55e7bb4f8da160098c6c1a4476ea2229215b8
[working/Evergreen.git] / Open-ILS / examples / opensrf.xml.example
1 <?xml version='1.0'?>
2
3 <!-- 
4 Example opensrf config file for OpenILS
5 vim:et:ts=4:sw=4:
6 -->
7
8 <opensrf version='0.0.3'>
9
10     <default>
11
12         <!-- unless otherwise overidden, use this locale -->
13         <default_locale>en-US</default_locale>
14
15         <dirs>
16             <log>LOCALSTATEDIR/log</log> <!-- unix::server log files -->
17             <sock>LOCALSTATEDIR/lock</sock> <!-- unix::server sock files -->
18             <pid>LOCALSTATEDIR/run</pid>
19             <xsl>LOCALSTATEDIR/xsl</xsl>
20             <script>LOCALSTATEDIR</script>
21             <script_lib>LOCALSTATEDIR</script_lib>
22             <templates>LOCALSTATEDIR/templates</templates>
23         </dirs>
24
25         <!-- global data visibility settings -->
26         <share>
27             <user>
28                 <!-- Set to "true" to require patron opt-in for foreign (non-home_ou) transactions -->
29                 <opt_in>false</opt_in>
30             </user>
31         </share>
32
33         <IDL>SYSCONFDIR/fm_IDL.xml</IDL> <!-- top level IDL file -->
34         <IDL2js>fm_IDL2js.xsl</IDL2js> <!-- IDL JS XSLT -->
35
36
37         <server_type>prefork</server_type> <!-- net::server type -->
38
39         <ils_events>LOCALSTATEDIR/data/ils_events.xml</ils_events> <!-- ILS events description file -->
40
41         <email_notify> <!-- this will eventually move into the notifications section below... -->
42             <!-- global email notification settings -->
43             <template>LOCALSTATEDIR/data/hold_notification_template.example</template>
44             <smtp_server>localhost</smtp_server>
45
46             <!--
47             in most cases, this is overridden by location 
48             specific config settings.  this is just the default
49             -->
50             <sender_address>evergreen@localhost</sender_address>
51         </email_notify>
52
53
54       <notifications>
55         <!-- global mail server settings -->
56         <smtp_server>localhost</smtp_server>
57         <sender_address>evergreen@localhost</sender_address>
58
59         <!-- global telephony (asterisk) settings -->
60         <telephony>
61             <!-- replace all values below when telephony server is configured -->
62             <enabled>0</enabled>
63             <driver>SIP</driver>    <!-- SIP (default) or multi -->
64             <channels>              <!-- explicit list of channels used if multi -->
65                                     <!-- A channel specifies technology/resource -->
66                 <channel>Zap/1</channel>
67                 <channel>Zap/2</channel>
68                 <channel>IAX/user:secret@widgets.biz</channel>
69             </channels>
70             <host>localhost</host>
71             <port>10080</port>
72             <user>evergreen</user>
73             <pw>evergreen</pw>
74             <!--
75                 The overall composition of callfiles is determined by the
76                 relevant template, but this section can be invoked for callfile
77                 configs common to all outbound calls.
78                 callfile_lines will be inserted into ALL generated callfiles
79                 after the Channel line.  This content mat be overridden
80                 (in whole) by the org unit setting callfile_lines.
81                 Warning: Invalid syntax may break ALL outbound calls.
82             -->
83             <!-- <callfile_lines>
84                 MaxRetries: 3
85                 RetryTime: 60
86                 WaitTime: 30
87                 Archive: 1
88                 Extension: 10
89             </callfile_lines> -->
90         </telephony>
91
92         <!-- Overdue notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
93         <overdue>
94
95             <!-- optionally, you can define a sender address per notice type -->
96             <sender_address>overdue@localhost</sender_address>
97
98             <!-- The system can generate an XML file of overdue notices.  This is the
99                 directory where they are stored.  Files are named overdue.YYYY-MM-DD.xml -->
100             <notice_dir>LOCALSTATEDIR/data/overdue</notice_dir>
101             <combined_template>LOCALSTATEDIR/data/templates/overdue_combined_xml.example</combined_template>
102
103             <notice>
104                 <!-- Notify at 7 days overdue -->
105                 <notify_interval>7 days</notify_interval>
106                 <!-- Options include always, noemail, and never.  'noemail' means a notice
107                      will be appended to the notice file only if the patron has no valid email address.  -->
108                 <file_append>noemail</file_append>
109                 <!-- do we attempt email notification? -->
110                 <email_notify>false</email_notify>
111                 <!-- notice template file -->
112                 <email_template>LOCALSTATEDIR/data/templates/overdue_7day.example</email_template>
113             </notice>
114         </overdue>
115
116         <!-- Courtesy notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
117         <predue>
118             <notice>
119                 <!-- All circulations that circulate between 5 and 13 days -->
120                 <circ_duration_range>
121                     <from>5 days</from>
122                     <to>13 days</to>
123                 </circ_duration_range>
124                 <!-- notify at 1 day before the due date -->
125                 <notify_interval>1 day</notify_interval>
126                 <file_append>false</file_append>
127                 <email_notify>false</email_notify>
128                 <email_template>LOCALSTATEDIR/data/templates/predue_1day.example</email_template>
129             </notice>
130         </predue>
131       </notifications>
132
133         <!-- Settings for the hold targeter cron job -->
134         <hold_targeter>
135             <!-- number of parallel processes to use during hold targeting;
136                  increasing can speed up (re)targeting a large number of
137                  hold requests, but with diminishing returns after a point;
138                  if increasing this value, it is recommend to do so slowly
139             -->
140             <parallel>1</parallel>
141         </hold_targeter>
142
143         <!-- Settings for the fine generator cron job -->
144         <fine_generator>
145             <!-- number of parallel processes to use during fine generation -->
146             <parallel>1</parallel>
147         </fine_generator>
148         
149         <reporter>
150             <!--
151             Settings for the reporter daemon process 
152             -->
153             <setup>
154                 <base_uri>https://localhost/reporter/</base_uri>
155                 <database>
156                     <driver>Pg</driver>
157                     <host>localhost</host>
158                     <port>5432</port>
159                     <db>evergreen</db>
160                     <user>postgres</user>
161                     <pw>postgres</pw>
162                 </database>
163                 <state_store>
164                     <driver>Pg</driver>
165                     <host>localhost</host>
166                     <port>5432</port>
167                     <db>evergreen</db>
168                     <user>postgres</user>
169                     <pw>postgres</pw>
170                 </state_store>
171                 <files>
172                     <!-- successful report outputs go here -->
173                     <output_base>LOCALSTATEDIR/web/reporter</output_base>
174                     <success_template>LOCALSTATEDIR/data/report-success</success_template>
175                     <fail_template>LOCALSTATEDIR/data/report-fail</fail_template>
176                 </files>
177             </setup>
178         </reporter>
179
180
181
182         <xml-rpc>
183             <!-- XML-RPC gateway.  Do NOT publish unprotected services here -->
184             <allowed_services>
185                 <!-- list of published services -->
186                 <service>opensrf.math</service>
187                 <service>opensrf.dbmath</service>
188                 <service>open-ils.cat</service>
189                 <service>open-ils.search</service>
190                 <service>open-ils.circ</service>
191                 <service>open-ils.actor</service>
192                 <service>open-ils.auth</service>
193                 <service>open-ils.auth_proxy</service>
194                 <service>open-ils.collections</service>
195                 <service>open-ils.justintime</service>
196             </allowed_services>
197         </xml-rpc>
198
199         <!--
200         Once upon a time, Z39.50 servers were defined here. As of Evergreen 2.2,
201         they are now defined in the database. See the Release Notes for
202         instructions on mapping the old XML entries to database tables.
203         -->
204
205         <added_content>
206             <!-- load the OpenLibrary added content module -->
207             <module>OpenILS::WWW::AddedContent::OpenLibrary</module>
208
209             <!--
210             Max number of seconds to wait for an added content request to 
211             return data.  Data not returned within the timeout is considered
212             a failure.
213
214             Note that the pool of Apache processes used by the AddedContent
215             module is the same pool used by core Evergreen processes such as
216             search, circulation, etc. Therefore, the higher you set this
217             timeout value, the more likely you are to run out of available
218             Apache processes resulting in an accidental (or purposeful) denial
219             of service - particularly if the added content server starts
220             responding abnormally slowly.
221
222             The safest option is to disable the AddedContent module completely,
223             but 3 seconds is a compromise between the threat of a denial of
224             service and the enhanced user experience offered by successful added
225             content requests.
226             -->
227             <timeout>3</timeout>
228
229             <!--
230             After added content lookups have been disabled due to too many
231             lookup failures, this is the amount of time to wait before
232             we try again
233             -->
234             <retry_timeout>600</retry_timeout>
235
236             <!--
237             maximum number of consecutive lookup errors a given process can 
238             have before added content lookups are disabled for everyone
239             -->
240             <max_errors>15</max_errors>
241
242             <!-- If a userid is required to access the added content.. -->
243             <userid>MY_USER_ID</userid>
244
245             <!--
246             Base URL for Amazon added content fetching. Not needed by OpenLibrary
247             <base_url>http://images.amazon.com/images/P/</base_url>
248             -->
249
250             <!--
251             Segregating the details for ContentCafe out for easier use.  At some point, we
252             may want to support multiple services at one time.
253             -->
254             <ContentCafe>
255                 <userid>MY_USER_ID</userid>
256                 <password>MY_PASSWORD</password>
257
258                 <!--
259                 If no cover/jacket image exists for a given ISBN, then a value of T here will
260                 return an 80x120 pixel image containing the text "No Image Available".  A
261                 value of 1 will return a 1x1 pixel image.
262                 -->
263                 <return_behavior_on_no_jacket_image>T</return_behavior_on_no_jacket_image>
264             </ContentCafe>
265
266             <!--
267  
268             You can add free-form settings here and they will be accessible
269             within the added content module
270             -->
271
272         </added_content>
273
274         <!-- no apps are enabled globally by default -->
275         <activeapps/> 
276
277         <cache>
278             <!-- memcache servers -->
279             <global>
280                 <servers>
281                     <server>127.0.0.1:11211</server>
282                 </servers>
283                 <max_cache_time>86400</max_cache_time>
284             </global>
285             <anon>
286                 <!-- anonymous cache.  currently, primarily used for web session caching -->
287                 <servers>
288                     <server>127.0.0.1:11211</server>
289                 </servers>
290                 <max_cache_time>1800</max_cache_time>
291                 <!-- maximum size of a single cache entry / default = 100k-->
292                 <max_cache_size>102400</max_cache_size>
293             </anon>
294         </cache>
295
296         <apps>
297             <!-- Acquisitions server -->
298             <open-ils.acq>
299                 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
300                 <keepalive>5</keepalive>
301                 <!-- true if this service support stateless requests -->
302                 <stateless>1</stateless>
303                 <!-- implementation language -->
304                 <language>perl</language>
305                 <!-- name of the library that implements this application -->
306                 <implementation>OpenILS::Application::Acq</implementation>
307                 <!-- maximum OpenSRF REQUEST within a stateful connection -->
308                 <max_requests>100</max_requests>
309                 <unix_config>
310                     <!--
311                     maximum number of top level requests coming to 
312                     this child before the child is recycled
313                     -->
314                     <max_requests>100</max_requests>
315                     <!-- min children to fork -->
316                     <min_children>1</min_children>
317                     <!-- max possible children to fork -->
318                     <max_children>15</max_children>
319                     <!--
320                     C forking implementation does not support 
321                     min/max idle children, but may in the future
322                     -->
323
324                     <!-- min idle children -->
325                     <min_spare_children>1</min_spare_children>
326                     <!-- max idle children -->
327                     <max_spare_children>5</max_spare_children>
328                     <!-- currently, only Perl uses the following 3 settings -->
329                     <unix_sock>open-ils.acq_unix.sock</unix_sock>
330                     <unix_pid>open-ils.acq_unix.pid</unix_pid>
331                     <unix_log>open-ils.acq_unix.log</unix_log>
332                 </unix_config>
333             </open-ils.acq>
334
335             <!-- Authentication server -->
336             <open-ils.auth>
337                 <keepalive>5</keepalive>
338                 <stateless>1</stateless>
339                 <language>c</language>
340                 <implementation>oils_auth.so</implementation>
341                 <unix_config>
342                     <max_requests>1000</max_requests>
343                     <min_children>1</min_children>
344                     <max_children>15</max_children>
345                     <min_spare_children>1</min_spare_children>
346                     <max_spare_children>5</max_spare_children>
347                 </unix_config>
348                 <app_settings>
349                     <!-- defined app-specific settings here -->
350                     <default_timeout>
351                         <!-- default login timeouts based on login type -->
352                         <opac>420</opac>
353                         <staff>7200</staff>
354                         <temp>300</temp>
355                         <persist>2 weeks</persist>
356                     </default_timeout>
357                     <auth_limits>
358                         <seed>30</seed> <!-- amount of time a seed request is valid for -->
359                         <block_time>90</block_time> <!-- amount of time since last auth or seed request to save failure counts -->
360                         <block_count>10</block_count> <!-- number of failures before blocking access -->
361                     </auth_limits>
362                 </app_settings>
363             </open-ils.auth>
364
365             <!-- Authentication proxy server -->
366             <open-ils.auth_proxy>
367                 <keepalive>5</keepalive>
368                 <stateless>1</stateless>
369                 <language>perl</language>
370                 <implementation>OpenILS::Application::AuthProxy</implementation>
371                 <max_requests>93</max_requests>
372
373                 <unix_config>
374                     <max_requests>1000</max_requests>
375                     <unix_log>open-ils.auth-proxy_unix.log</unix_log>
376                     <unix_sock>open-ils.auth-proxy_unix.sock</unix_sock>
377                     <unix_pid>open-ils.auth-proxy_unix.pid</unix_pid>
378                     <min_children>1</min_children>
379                     <max_children>15</max_children>
380                     <min_spare_children>1</min_spare_children>
381                     <max_spare_children>5</max_spare_children>
382                 </unix_config>
383
384                 <app_settings>
385                     <!-- 'enabled' is the master switch; set to 'true' to enable proxied logins -->
386                     <enabled>false</enabled>
387                     <authenticators>
388                         <!-- the following is a sample configuration for the LDAP_Auth module; please adjust as needed -->
389                         <!--
390                         <authenticator>
391                             <name>ldap</name>
392                             <module>OpenILS::Application::AuthProxy::LDAP_Auth</module>
393                             <hostname>name.domain.com</hostname>
394                             <basedn>ou=people,dc=domain,dc=com</basedn>
395                             <authid>cn=username,ou=specials,dc=domain,dc=com</authid>
396                             <password>my_ldap_password_for_authid_user</password>
397                             <login_types>
398                                 <type>staff</type>
399                                 <type>opac</type>
400                             </login_types>
401                             <org_units>
402                                 <unit>103</unit>
403                                 <unit>104</unit>
404                             </org_units>
405                         </authenticator>
406                         -->
407                         <!-- 'native' is a proxied version of Evergreen's standard authentication -->
408                         <authenticator>
409                             <name>native</name>
410                             <!-- you can add 'login_types' and 'org_units' limits to this authenticator as well, if needed -->
411                         </authenticator>
412                     </authenticators>
413                 </app_settings>
414             </open-ils.auth_proxy>
415
416             <!-- Generic search server -->
417             <open-ils.search>
418                 <keepalive>5</keepalive>
419                 <stateless>1</stateless>
420                 <language>perl</language>
421                 <implementation>OpenILS::Application::Search</implementation>
422                 <max_requests>93</max_requests>
423                 <unix_config>
424                     <unix_sock>open-ils.search_unix.sock</unix_sock>
425                     <unix_pid>open-ils.search_unix.pid</unix_pid>
426                     <unix_log>open-ils.search_unix.log</unix_log>
427
428                     <max_requests>1000</max_requests>
429                     <min_children>1</min_children>
430                     <max_children>15</max_children>
431                     <min_spare_children>1</min_spare_children>
432                     <max_spare_children>5</max_spare_children>
433                 </unix_config>
434                 <app_settings>
435                     <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
436                     <marc_html_xsl_slim>oilsMARC21slim2HTMLslim.xsl</marc_html_xsl_slim>
437
438                     <spelling_dictionary>
439                         <!-- 
440                             Optionally configure different dictionaries depending on search context.  
441                             If no dictionaries are defined, the default Aspell dictionary is used.
442                         -->
443                         <!--
444                         <default>LOCALSTATEDIR/data/default_dict.txt</default>
445                         <title>LOCALSTATEDIR/data/title_dict.txt</title>
446                         <author>LOCALSTATEDIR/data/author_dict.txt</author>
447                         <subject>LOCALSTATEDIR/data/subject_dict.txt</subject>
448                         <series>LOCALSTATEDIR/data/series_dict.txt</series>
449                         -->
450                     </spelling_dictionary>
451
452                     <!-- Default to using staged search -->
453                     <use_staged_search>true</use_staged_search>
454
455                     <!--
456                         For staged search, we estimate hits based on inclusion or exclusion.
457
458                         Valid settings:
459                             inclusion - visible ratio on superpage
460                             exclusion - excluded ratio on superpage
461                             delete_adjusted_inclusion - included ratio on superpage, ratio adjusted by deleted count
462                             delete_adjusted_exclusion - excluded ratio on superpage, ratio adjusted by deleted count
463
464                         Under normal circumstances, inclusion is the best strategy, and both delete_adjusted variants
465                         will return the same value +/- 1.  The exclusion strategy is the original, and works well
466                         when there are few deleted or excluded records, in other words, when the superpage is not
467                         sparsely populated with visible records.
468                     -->
469                     <estimation_strategy>inclusion</estimation_strategy>
470
471                     <!--
472                         Evergreen uses a cover density algorithm for calculating relative ranking of matches.  There
473                         are several tuning parameters and options available.  By default, no document length normalization
474                         is applied.  From the Postgres documentation on ts_rank_cd() (the function used by Evergreen):
475
476                             Since a longer document has a greater chance of containing a query term it is reasonable 
477                             to take into account document size, e.g., a hundred-word document with five instances of 
478                             a search word is probably more relevant than a thousand-word document with five instances. 
479                             Both ranking functions take an integer normalization option that specifies whether and how 
480                             a document's length should impact its rank. The integer option controls several behaviors, 
481                             so it is a bit mask: you can specify one or more behaviors using | (for example, 2|4).
482
483                                 0 (the default) ignores the document length
484
485                                 1 divides the rank by 1 + the logarithm of the document length
486
487                                 2 divides the rank by the document length
488
489                                 4 divides the rank by the mean harmonic distance between extents (this is implemented only by ts_rank_cd)
490
491                                 8 divides the rank by the number of unique words in document
492
493                                 16 divides the rank by 1 + the logarithm of the number of unique words in document
494
495                                 32 divides the rank by itself + 1
496
497                             If more than one flag bit is specified, the transformations are applied in the order listed.
498
499                             It is important to note that the ranking functions do not use any global information, so it 
500                             is impossible to produce a fair normalization to 1% or 100% as sometimes desired. Normalization 
501                             option 32 (rank/(rank+1)) can be applied to scale all ranks into the range zero to one, but of 
502                             course this is just a cosmetic change; it will not affect the ordering of the search results.
503
504                         In Evergreen, these options are set via search modifiers.  The modifiers are mapped in the
505                         following way:
506
507                             * #CD_logDocumentLength  => 1  :: rank / (1 + LOG(total_word_count))   :: Longer documents slightly less relevant
508                             * #CD_documentLength     => 2  :: rank / total_word_count              :: Longer documents much less relevant
509                             * #CD_meanHarmonic       => 4  :: Word Proximity                       :: Greater matched-word distance is less relevant
510                             * #CD_uniqueWords        => 8  :: rank / unique_word_count             :: Documents with repeated words much less relevant
511                             * #CD_logUniqueWords     => 16 :: rank / (1 + LOG(unique_word_count))  :: Documents with repeated words slightly less relevant
512                             * #CD_selfPlusOne        => 32 :: rank / (1 + rank)                    :: Cosmetic normalization of rank value between 0 and 1
513
514                         Adding one or more of these to the default_CD_modifiers list will cause all searches that use QueryParser to apply them.
515                     -->
516                     <default_CD_modifiers>#CD_documentLength #CD_meanHarmonic #CD_uniqueWords</default_CD_modifiers>
517
518                     <!--
519                         default_preferred_language
520                             Set the global, default preferred languange
521                     -->
522                     <default_preferred_language>eng</default_preferred_language>
523
524                     <!--
525                         default_preferred_language_weight
526                             Set the weight (higher is "better") for the preferred language. Comment out to remove all lanuage weighting by default.
527                     -->
528                     <default_preferred_language_weight>5</default_preferred_language_weight>
529
530                     <!-- Baseline number of records to check for hit estimation. -->
531                     <superpage_size>1000</superpage_size>
532
533                     <!-- How many superpages to consider for searching overall. -->
534                     <max_superpages>10</max_superpages>
535
536                     <!-- zip code database file -->
537                     <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
538                 </app_settings>
539             </open-ils.search>
540
541             <!-- server for accessing user info -->
542             <open-ils.actor>
543                 <keepalive>5</keepalive>
544                 <stateless>1</stateless>
545                 <language>perl</language>
546                 <implementation>OpenILS::Application::Actor</implementation>
547                 <max_requests>93</max_requests>
548                 <unix_config>
549                     <unix_sock>open-ils.actor_unix.sock</unix_sock>
550                     <unix_pid>open-ils.actor_unix.pid</unix_pid>
551                     <max_requests>1000</max_requests>
552                     <unix_log>open-ils.actor_unix.log</unix_log>
553                     <min_children>1</min_children>
554                     <max_children>15</max_children>
555                     <min_spare_children>1</min_spare_children>
556                     <max_spare_children>5</max_spare_children>
557                 </unix_config>
558                 <!-- set this to 'true' to have barcode search also search patron records by unique ID -->
559                 <app_settings>
560                     <id_as_barcode>false</id_as_barcode>
561                 </app_settings>
562
563             </open-ils.actor>
564
565             <open-ils.booking>
566                 <keepalive>5</keepalive>
567                 <stateless>1</stateless>
568                 <language>perl</language>
569                 <implementation>OpenILS::Application::Booking</implementation>
570                 <max_requests>199</max_requests>
571                 <unix_config>
572                     <unix_sock>open-ils.booking_unix.sock</unix_sock>
573                     <unix_pid>open-ils.booking_unix.pid</unix_pid>
574                     <max_requests>1000</max_requests>
575                     <unix_log>open-ils.booking_unix.log</unix_log>
576                     <min_children>1</min_children>
577                     <max_children>15</max_children>
578                     <min_spare_children>1</min_spare_children>
579                     <max_spare_children>5</max_spare_children>
580                 </unix_config>
581                 <app_settings>
582                 </app_settings>
583             </open-ils.booking>
584
585             <open-ils.cat>
586                 <keepalive>5</keepalive>
587                 <stateless>1</stateless>
588                 <language>perl</language>
589                 <implementation>OpenILS::Application::Cat</implementation>
590                 <max_requests>199</max_requests>
591                 <unix_config>
592                     <unix_sock>open-ils.cat_unix.sock</unix_sock>
593                     <unix_pid>open-ils.cat_unix.pid</unix_pid>
594                     <max_requests>1000</max_requests>
595                     <unix_log>open-ils.cat_unix.log</unix_log>
596                     <min_children>1</min_children>
597                     <max_children>15</max_children>
598                     <min_spare_children>1</min_spare_children>
599                     <max_spare_children>5</max_spare_children>
600                 </unix_config>
601                 <app_settings>
602                     <marctemplates>
603                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
604                     </marctemplates>
605                 </app_settings>
606             </open-ils.cat>
607
608             <open-ils.supercat>
609                 <keepalive>5</keepalive>
610                 <stateless>1</stateless>
611                 <language>perl</language>
612                 <implementation>OpenILS::Application::SuperCat</implementation>
613                 <max_requests>199</max_requests>
614                 <unix_config>
615                     <unix_sock>open-ils.supercat_unix.sock</unix_sock>
616                     <unix_pid>open-ils.supercat_unix.pid</unix_pid>
617                     <max_requests>1000</max_requests>
618                     <unix_log>open-ils.supercat_unix.log</unix_log>
619                     <min_children>1</min_children>
620                     <max_children>15</max_children>
621                     <min_spare_children>1</min_spare_children>
622                     <max_spare_children>5</max_spare_children>
623                 </unix_config>
624             </open-ils.supercat>
625
626             <!-- server for accessing user info -->
627             <open-ils.trigger>
628                 <keepalive>5</keepalive>
629                 <stateless>1</stateless>
630                 <language>perl</language>
631                 <implementation>OpenILS::Application::Trigger</implementation>
632                 <max_requests>93</max_requests>
633                 <unix_config>
634                     <unix_sock>open-ils.trigger_unix.sock</unix_sock>
635                     <unix_pid>open-ils.trigger_unix.pid</unix_pid>
636                     <max_requests>1000</max_requests>
637                     <unix_log>open-ils.trigger_unix.log</unix_log>
638                     <min_children>1</min_children>
639                     <max_children>15</max_children>
640                     <min_spare_children>1</min_spare_children>
641                     <max_spare_children>5</max_spare_children>
642                 </unix_config>
643                 <app_settings>
644                     <!-- number of parallel open-ils.trigger processes to use for collection and reaction -->
645                     <!--
646                     <parallel>
647                         <collect>3</collect>
648                         <react>3</react>
649                     </parallel>
650                     -->
651                 </app_settings>
652             </open-ils.trigger>
653
654             <opensrf.math>
655                 <keepalive>3</keepalive>
656                 <stateless>1</stateless>
657                 <language>c</language>
658                 <implementation>osrf_math.so</implementation>
659                 <unix_config>
660                     <unix_sock>opensrf.math_unix.sock</unix_sock>
661                     <unix_pid>opensrf.math_unix.pid</unix_pid>
662                     <max_requests>1000</max_requests>
663                     <unix_log>opensrf.math_unix.log</unix_log>
664                     <min_children>1</min_children>
665                     <max_children>15</max_children>
666                     <min_spare_children>1</min_spare_children>
667                     <max_spare_children>5</max_spare_children>
668                 </unix_config>
669             </opensrf.math>
670
671             <opensrf.dbmath> 
672                 <keepalive>3</keepalive>
673                 <stateless>1</stateless>
674                 <language>c</language>
675                 <implementation>osrf_dbmath.so</implementation>
676                 <unix_config>
677                     <max_requests>1000</max_requests>
678                     <unix_log>opensrf.dbmath_unix.log</unix_log>
679                     <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
680                     <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
681                     <min_children>1</min_children>
682                     <max_children>15</max_children>
683                     <min_spare_children>1</min_spare_children> 
684                     <max_spare_children>5</max_spare_children>
685                 </unix_config>
686             </opensrf.dbmath>
687
688             <open-ils.penalty>
689                 <keepalive>3</keepalive>
690                 <stateless>1</stateless>
691                 <language>perl</language>
692                 <implementation>OpenILS::Application::Penalty</implementation>
693                 <max_requests>99</max_requests>
694                 <unix_config>
695                     <max_requests>1000</max_requests>
696                     <unix_log>open-ils.penalty_unix.log</unix_log>
697                     <unix_sock>open-ils.penalty_unix.sock</unix_sock>
698                     <unix_pid>open-ils.penalty_unix.pid</unix_pid>
699                     <min_children>1</min_children>
700                     <max_children>15</max_children>
701                     <min_spare_children>1</min_spare_children>
702                     <max_spare_children>5</max_spare_children>
703                 </unix_config>
704                 <app_settings>
705                     <patron_penalty>penalty/patron_penalty.js</patron_penalty>
706                     <script_path>LIBDIR/javascript</script_path>
707                     <script_path>LOCALSTATEDIR</script_path>
708                     <script_path>LOCALSTATEDIR/catalog</script_path>
709                 </app_settings>
710             </open-ils.penalty>
711
712             <open-ils.justintime>
713                 <keepalive>5</keepalive>
714                 <stateless>1</stateless>
715                 <language>perl</language>
716                 <implementation>OpenILS::Application::JustInTime</implementation>
717                 <max_requests>199</max_requests>
718                 <unix_config>
719                     <unix_sock>open-ils.justintime_unix.sock</unix_sock>
720                     <unix_pid>open-ils.justintime_unix.pid</unix_pid>
721                     <max_requests>1000</max_requests>
722                     <unix_log>open-ils.justintime_unix.log</unix_log>
723                     <min_children>1</min_children>
724                     <max_children>15</max_children>
725                     <min_spare_children>1</min_spare_children>
726                     <max_spare_children>5</max_spare_children>
727                 </unix_config>
728                 <app_settings>
729                 </app_settings>
730             </open-ils.justintime>
731
732             <open-ils.circ> 
733                 <keepalive>3</keepalive>
734                 <stateless>1</stateless>
735                 <language>perl</language>
736                 <implementation>OpenILS::Application::Circ</implementation>
737                 <max_requests>99</max_requests>
738                 <unix_config>
739                     <max_requests>1000</max_requests>
740                     <unix_log>open-ils.circ_unix.log</unix_log>
741                     <unix_sock>open-ils.circ_unix.sock</unix_sock>
742                     <unix_pid>open-ils.circ_unix.pid</unix_pid>
743                     <min_children>1</min_children>
744                     <max_children>15</max_children>
745                     <min_spare_children>1</min_spare_children> 
746                     <max_spare_children>5</max_spare_children>
747                 </unix_config>
748                 <app_settings>
749                     <notify_hold>
750                         <email>false</email> <!-- set to false to disable hold notice emails -->
751                     </notify_hold>
752
753                     <!-- circulation policy scripts -->
754                     <script_path>LIBDIR/javascript</script_path>
755                     <script_path>LOCALSTATEDIR</script_path>
756                     <script_path>LOCALSTATEDIR/catalog</script_path>
757                     <legacy_script_support>false</legacy_script_support>
758                     <scripts> 
759                         <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
760                         <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
761                         <circ_duration>circ/circ_duration.js</circ_duration>
762                         <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
763                         <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
764                         <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
765                         <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
766                     </scripts>               
767
768                     <circ_modifiers>
769                         <mod>art</mod>
770                         <mod>atlas</mod>
771                         <mod>audiobook</mod>
772                         <mod>av</mod>
773                         <mod>new-av</mod>
774                         <mod>bestseller</mod>
775                         <mod>bestsellernh</mod>
776                         <mod>book</mod>
777                         <mod>cd</mod>
778                         <mod>dvd</mod>
779                         <mod>dvd-long</mod>
780                         <mod>e-book</mod>
781                         <mod>equipment</mod>
782                         <mod>filmstrip</mod>
783                         <mod>kit</mod>
784                         <mod>magazine</mod>
785                         <mod>map</mod>
786                         <mod>microform</mod>
787                         <mod>music</mod>
788                         <mod>record</mod>
789                         <mod>software</mod>
790                         <mod>softwrlong</mod>
791                         <mod>equip-long</mod>
792                         <mod>talking book</mod>
793                         <mod>toy</mod>
794                         <mod>video</mod>
795                         <mod>video-long</mod>
796                     </circ_modifiers>
797
798                     <billing_types>
799                         <type>Miscellaneous</type>
800                         <type>Overdue materials</type>
801                         <type>Fee for placing a hold</type>
802                         <type>Fee for checking out a book</type>
803                         <type>Fee for library card</type>
804                         <type>Miscellaneous charges</type>
805                         <type>Lost materials</type>
806                         <type>Damaged material</type>
807                         <type>Overdue Reserves charge</type>
808                         <type>Recall overdue</type>
809                         <type>Fee for processing lost library materials</type>
810                         <type>Fee for sending patron bills to collection agency</type>
811                         <type>Fee for interlibrary loan</type>
812                         <type>Fee for copies</type>
813                         <type>Money advanced to pay for telephone use</type>
814                         <type>Deposit fee</type>
815                         <type>Fee for disk</type>
816                         <type>Fee for faxing</type>
817                         <type>Fee for laminating</type>
818                         <type>Fee for room cleaning</type>
819                         <type>Deposit returned; fee refund</type>
820                         <type>Sale items</type>
821                         <type>Fee for lost card</type>
822                         <type>Long overdue items</type>
823                         <type>Lost/Replacement Cassette</type>
824                         <type>Returned Check</type>
825                     </billing_types>
826                 </app_settings>
827             </open-ils.circ>
828
829             <open-ils.ingest>
830                 <keepalive>3</keepalive>
831                 <stateless>1</stateless>
832                 <implementation>OpenILS::Application::Ingest</implementation>
833                 <language>perl</language>
834                 <max_requests>1000000</max_requests>
835                 <unix_config>
836                     <max_requests>1000000</max_requests>
837                     <unix_log>open-ils.ingest-unix.log</unix_log>
838                     <unix_sock>open-ils.ingest-unix.sock</unix_sock>
839                     <unix_pid>open-ils.ingest-unix.pid</unix_pid>
840                     <min_children>5</min_children>
841                     <max_children>20</max_children>
842                     <min_spare_children>2</min_spare_children>
843                     <max_spare_children>5</max_spare_children>
844                 </unix_config>
845                 <app_settings>
846                     <script_path>LIBDIR/javascript/</script_path>
847                     <script_path>LOCALSTATEDIR/catalog/</script_path>
848                     <script_path>LOCALSTATEDIR/web/opac/common/js/</script_path>
849                     <scripts>
850                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
851                         <biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
852                     </scripts>
853                 </app_settings>
854             </open-ils.ingest>
855
856             <open-ils.storage>
857                 <keepalive>10</keepalive>
858                 <stateless>1</stateless>
859                 <language>perl</language>
860                 <implementation>OpenILS::Application::Storage</implementation>
861                 <unix_config>
862                     <max_requests>1000</max_requests>
863                     <unix_log>open-ils.storage_unix.log</unix_log>
864                     <unix_sock>open-ils.storage_unix.sock</unix_sock>
865                     <unix_pid>open-ils.storage_unix.pid</unix_pid>
866                     <min_children>1</min_children>
867                     <max_children>10</max_children>
868                     <min_spare_children>1</min_spare_children>
869                     <max_spare_children>5</max_spare_children>
870                 </unix_config>
871                 <app_settings>
872                     <script_path>LIBDIR/javascript/</script_path>
873                     <script_path>LOCALSTATEDIR/catalog/</script_path>
874                     <scripts>
875                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
876                     </scripts>
877                     <databases>
878                         <driver>Pg</driver>
879                         <database>
880                             <type>master</type>
881                             <weight>2</weight>
882                             <user>postgres</user>
883                             <host>localhost</host>
884                             <port>5432</port>
885                             <pw>postgres</pw>
886                             <db>evergreen</db>
887                             <client_encoding>UTF-8</client_encoding>
888                         </database>
889                     </databases>
890                 </app_settings>
891             </open-ils.storage>
892
893             <open-ils.cstore>
894                 <keepalive>6</keepalive>
895                 <stateless>1</stateless>
896                 <language>C</language>
897                 <implementation>oils_cstore.so</implementation>
898                 <unix_config>
899                     <max_requests>1000</max_requests>
900                     <min_children>1</min_children>
901                     <max_children>15</max_children>
902                     <min_spare_children>1</min_spare_children>
903                     <max_spare_children>5</max_spare_children>
904                 </unix_config>
905                 <app_settings>
906                     <max_query_recursion>100</max_query_recursion>
907                     <driver>pgsql</driver>
908                     <database>
909                         <type>master</type>
910                         <weight>2</weight>
911                         <user>postgres</user>
912                         <host>localhost</host>
913                         <port>5432</port>
914                         <pw>postgres</pw>
915                         <db>evergreen</db>
916                         <client_encoding>UTF-8</client_encoding>
917                     </database>
918                 </app_settings>
919             </open-ils.cstore>
920
921             <open-ils.pcrud>
922                 <keepalive>6</keepalive>
923                 <migratable>1</migratable>
924                 <stateless>1</stateless>
925                 <language>C</language>
926                 <implementation>oils_pcrud.so</implementation>
927
928                 <unix_config>
929                     <unix_log>open-ils.pcrud.log</unix_log>
930                     <unix_sock>open-ils.pcrud.sock</unix_sock>
931                     <unix_pid>open-ils.pcrud.pid</unix_pid>
932                     <max_requests>1000</max_requests>
933                     <min_children>1</min_children>
934                     <max_children>15</max_children>
935                     <min_spare_children>1</min_spare_children>
936                     <max_spare_children>5</max_spare_children>
937                 </unix_config>
938
939                 <app_settings>
940                     <IDL>SYSCONFDIR/fm_IDL.xml</IDL>
941                     <driver>pgsql</driver>
942                     <database>
943                         <type>master</type>
944                         <weight>2</weight>
945                         <user>postgres</user>
946                         <host>localhost</host>
947                         <port>5432</port>
948                         <pw>postgres</pw>
949                         <db>evergreen</db>
950                         <client_encoding>UTF-8</client_encoding>
951                     </database>
952                 </app_settings>
953             </open-ils.pcrud>
954
955             <open-ils.qstore>
956                 <keepalive>6</keepalive>
957                 <stateless>1</stateless>
958                 <language>C</language>
959                 <implementation>oils_qstore.so</implementation>
960                 <unix_config>
961                     <max_requests>1000</max_requests>
962                     <min_children>1</min_children>
963                     <max_children>15</max_children>
964                     <min_spare_children>1</min_spare_children>
965                     <max_spare_children>5</max_spare_children>
966                 </unix_config>
967                 <app_settings>
968                     <driver>pgsql</driver>
969                     <database>
970                         <type>master</type>
971                         <weight>2</weight>
972                         <user>postgres</user>
973                         <host>localhost</host>
974                         <port>5432</port>
975                         <pw>postgres</pw>
976                         <db>evergreen</db>
977                         <client_encoding>UTF-8</client_encoding>
978                     </database>
979                 </app_settings>
980             </open-ils.qstore>
981
982             <opensrf.settings>
983                 <keepalive>1</keepalive>
984                 <stateless>1</stateless>
985                 <language>perl</language>
986                 <implementation>OpenSRF::Application::Settings</implementation>
987                 <max_requests>17</max_requests>
988                 <unix_config>
989                     <unix_sock>opensrf.settings_unix.sock</unix_sock>
990                     <unix_pid>opensrf.settings_unix.pid</unix_pid>
991                     <max_requests>300</max_requests>
992                     <unix_log>opensrf.settings_unix.log</unix_log>
993                     <min_children>5</min_children>
994                     <max_children>15</max_children>
995                     <min_spare_children>3</min_spare_children>
996                     <max_spare_children>5</max_spare_children>
997                 </unix_config>
998             </opensrf.settings>
999
1000             <open-ils.collections>
1001                 <keepalive>3</keepalive>
1002                 <stateless>1</stateless>
1003                 <language>perl</language>
1004                 <implementation>OpenILS::Application::Collections</implementation>
1005                 <max_requests>17</max_requests>
1006                 <unix_config>
1007                     <unix_sock>open-ils.collections_unix.sock</unix_sock>
1008                     <unix_pid>open-ils.collections_unix.pid</unix_pid>
1009                     <max_requests>1000</max_requests>
1010                     <unix_log>open-ils.collections_unix.log</unix_log>
1011                     <min_children>1</min_children>
1012                     <max_children>10</max_children>
1013                     <min_spare_children>1</min_spare_children>
1014                     <max_spare_children>5</max_spare_children>
1015                 </unix_config>
1016             </open-ils.collections>
1017
1018             <open-ils.reporter>
1019                 <keepalive>3</keepalive>
1020                 <stateless>1</stateless>
1021                 <language>perl</language>
1022                 <implementation>OpenILS::Application::Reporter</implementation>
1023                 <max_requests>99</max_requests>
1024                 <unix_config>
1025                     <unix_sock>open-ils.reporter_unix.sock</unix_sock>
1026                     <unix_pid>open-ils.reporter_unix.pid</unix_pid>
1027                     <max_requests>1000</max_requests>
1028                     <unix_log>open-ils.reporter_unix.log</unix_log>
1029                     <min_children>1</min_children>
1030                     <max_children>10</max_children>
1031                     <min_spare_children>1</min_spare_children>
1032                     <max_spare_children>5</max_spare_children>
1033                 </unix_config>
1034             </open-ils.reporter>
1035
1036             <open-ils.reporter-store>
1037                 <keepalive>6</keepalive>
1038                 <stateless>1</stateless>
1039                 <language>C</language>
1040                 <implementation>oils_rstore.so</implementation>
1041                 <unix_config>
1042                     <max_requests>400</max_requests>
1043                     <min_children>1</min_children>
1044                     <max_children>10</max_children>
1045                     <min_spare_children>1</min_spare_children>
1046                     <max_spare_children>5</max_spare_children>
1047                 </unix_config>
1048                 <app_settings>
1049                     <driver>pgsql</driver>
1050                     <database>
1051                         <type>master</type>
1052                         <weight>2</weight>
1053                         <user>postgres</user>
1054                         <host>localhost</host>
1055                         <port>5432</port>
1056                         <pw>postgres</pw>
1057                         <db>evergreen</db>
1058                         <client_encoding>UTF-8</client_encoding>
1059                     </database>
1060                 </app_settings>
1061             </open-ils.reporter-store>
1062
1063 <!-- resolver_type defaults to sfx but can also be cufts -->
1064 <!--
1065            <open-ils.resolver>
1066                <keepalive>3</keepalive>
1067                <stateless>1</stateless>
1068                <language>perl</language>
1069                <implementation>OpenILS::Application::ResolverResolver</implementation>
1070                <max_requests>93</max_requests>
1071                <unix_config>
1072                   <unix_sock>open-ils.resolver_unix.sock</unix_sock>
1073                   <unix_pid>open-ils.resolver_unix.pid</unix_pid>
1074                   <max_requests>1000</max_requests>
1075                   <unix_log>open-ils.resolver_unix.log</unix_log>
1076                   <min_children>5</min_children>
1077                   <max_children>15</max_children>
1078                   <min_spare_children>3</min_spare_children>
1079                   <max_spare_children>5</max_spare_children>
1080                </unix_config>
1081                <app_settings>
1082                   <cache_timeout>86400</cache_timeout>
1083                   <request_timeout>10</request_timeout>
1084                   <default_url_base>http://path/to/sfx_or_cufts</default_url_base>
1085                   <resolver_type>sfx</resolver_type>
1086                </app_settings>
1087             </open-ils.resolver>
1088 -->
1089
1090             <open-ils.permacrud>
1091                <keepalive>3</keepalive>
1092                <stateless>1</stateless>
1093                <language>perl</language>
1094                <implementation>OpenILS::Application::PermaCrud</implementation>
1095                <max_requests>17</max_requests>
1096                <unix_config>
1097                   <unix_sock>open-ils.permacrud_unix.sock</unix_sock>
1098                   <unix_pid>open-ils.permacrud_unix.pid</unix_pid>
1099                   <max_requests>1000</max_requests>
1100                   <unix_log>open-ils.permacrud_unix.log</unix_log>
1101                   <min_children>5</min_children>
1102                   <max_children>15</max_children>
1103                   <min_spare_children>3</min_spare_children>
1104                   <max_spare_children>5</max_spare_children>
1105                </unix_config>
1106             </open-ils.permacrud>
1107
1108             <open-ils.fielder>
1109                <keepalive>3</keepalive>
1110                <stateless>1</stateless>
1111                <language>perl</language>
1112                <implementation>OpenILS::Application::Fielder</implementation>
1113                <max_requests>17</max_requests>
1114                <unix_config>
1115                   <unix_sock>open-ils.fielder_unix.sock</unix_sock>
1116                   <unix_pid>open-ils.fielder_unix.pid</unix_pid>
1117                   <max_requests>1000</max_requests>
1118                   <unix_log>open-ils.fielder_unix.log</unix_log>
1119                   <min_children>5</min_children>
1120                   <max_children>15</max_children>
1121                   <min_spare_children>3</min_spare_children>
1122                   <max_spare_children>5</max_spare_children>
1123                </unix_config>
1124             </open-ils.fielder>
1125
1126             <open-ils.vandelay>
1127                 <keepalive>5</keepalive>
1128                 <stateless>1</stateless>
1129                 <language>perl</language>
1130                 <implementation>OpenILS::Application::Vandelay</implementation>
1131                 <max_requests>100</max_requests>
1132                 <unix_config>
1133                     <unix_sock>vandelay_unix.sock</unix_sock>
1134                     <unix_pid>vandelay_unix.pid</unix_pid>
1135                     <unix_log>vandelay_unix.log</unix_log>
1136                     <max_requests>100</max_requests>
1137                     <min_children>1</min_children>
1138                     <max_children>15</max_children>
1139                     <min_spare_children>1</min_spare_children>
1140                     <max_spare_children>5</max_spare_children>
1141                 </unix_config>
1142                 <app_settings>
1143                     <databases>
1144                         <!-- temporary location for MARC import files.  
1145                             Files will be deleted after records are spooled.
1146                             *note:  in a multi-brick environment, this will need to
1147                             be on a write-able NFS share.  -->
1148                         <importer>/tmp</importer>
1149                     </databases>
1150                 </app_settings>
1151             </open-ils.vandelay>
1152
1153             <open-ils.serial>
1154                 <keepalive>3</keepalive>
1155                 <stateless>1</stateless>
1156                 <language>perl</language>
1157                 <implementation>OpenILS::Application::Serial</implementation>
1158                 <max_requests>17</max_requests>
1159                 <unix_config>
1160                     <unix_sock>open-ils.serial_unix.sock</unix_sock>
1161                     <unix_pid>open-ils.serial_unix.pid</unix_pid>
1162                     <max_requests>1000</max_requests>
1163                     <unix_log>open-ils.serial_unix.log</unix_log>
1164                     <min_children>5</min_children>
1165                     <max_children>15</max_children>
1166                     <min_spare_children>3</min_spare_children>
1167                     <max_spare_children>5</max_spare_children>
1168                 </unix_config>
1169                 <app_settings>
1170                 </app_settings>
1171             </open-ils.serial>
1172
1173         </apps>
1174     </default>
1175
1176     <hosts>
1177
1178         <localhost> 
1179             <!-- ^-=- 
1180             Should match the fully qualified domain name of the host.
1181
1182             On Linux, the output of the following command is authoritative:
1183             $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
1184
1185             To use 'localhost' instead, run osrf_ctl.sh with the -l flag
1186             -->
1187
1188             <activeapps>
1189                 <!-- services hosted on this machine -->
1190                 <appname>opensrf.settings</appname> 
1191                 <appname>opensrf.math</appname> 
1192                 <appname>opensrf.dbmath</appname> 
1193                 <appname>open-ils.acq</appname> 
1194                 <appname>open-ils.booking</appname>
1195                 <appname>open-ils.cat</appname> 
1196                 <appname>open-ils.supercat</appname> 
1197                 <appname>open-ils.search</appname> 
1198                 <appname>open-ils.circ</appname> 
1199                 <appname>open-ils.actor</appname> 
1200                 <appname>open-ils.auth</appname> 
1201                 <appname>open-ils.auth_proxy</appname> 
1202                 <appname>open-ils.storage</appname>  
1203                 <appname>open-ils.penalty</appname>  
1204                 <appname>open-ils.justintime</appname>  
1205                 <appname>open-ils.cstore</appname>  
1206                 <appname>open-ils.collections</appname>  
1207                 <appname>open-ils.ingest</appname>  
1208                 <appname>open-ils.reporter</appname>  
1209                 <appname>open-ils.reporter-store</appname>  
1210                 <!-- <appname>open-ils.resolver</appname> -->
1211                 <appname>open-ils.permacrud</appname>  
1212                 <appname>open-ils.pcrud</appname>  
1213                 <appname>open-ils.trigger</appname>  
1214                 <appname>open-ils.fielder</appname>  
1215                 <appname>open-ils.vandelay</appname>  
1216                 <appname>open-ils.serial</appname>  
1217             </activeapps>
1218         </localhost>
1219     </hosts>
1220
1221 </opensrf>