Update ContentCafe Added Content Module
[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                 Which order to put identifiers in.
260                 Default is "isbn,upc", ignoring currently unsupported issn.
261                 Should be all lowercase.
262                 Remove an identifier from the list to skip it.
263                 -->
264                 <identifier_order>isbn,upc</identifier_order>
265             </ContentCafe>
266
267             <!--
268  
269             You can add free-form settings here and they will be accessible
270             within the added content module
271             -->
272
273         </added_content>
274
275         <!-- Config section for acq_order_reader.pl script.
276              It reads MARC order record files from disk (presumably
277              an FTP destination) and pushes the order records into ACQ.
278              THIS IS NOT EDI. -->
279         <acq_order_reader>
280
281             <!-- Root directory for all FTP'd ACQ order record files .
282                  If the script is configured to talk to a remote acq server,
283                  this directory has to be a read/write NFS share.  -->
284             <base_dir>/openils/var/data/acq_orders/</base_dir>
285
286             <!-- any files found in the shared subdir must be inspected
287                  (e.g. file name prefix) to determine the provider. -->
288             <shared_subdir>ALL</shared_subdir><!-- SUPPORT PENDING -->
289
290             <!-- providers that don't provide a mechanism to inspect the file
291                  have to push their files to provider-specific locations -->
292             <provider>
293                 <ordering_agency>BR1</ordering_agency> <!-- who gets/manages the order -->
294                 <provider_code>BAB</provider_code>   
295                 <provider_owner>CONS</provider_owner>  <!-- provider provider_owner; org unit shortname -->
296                 <subdir>CONS-BAB</subdir> <!-- file directory;  full path = base_dir + subdir -->
297                 <activate_po>false</activate_po> <!-- activate PO at upload? -->
298                 <vandelay>
299                     <import_no_match>true</import_no_match>
300                     <!-- Most Vandelay options are supported.  For bools, use true/false.
301                         match_quality_ratio 
302                         match_set 
303                         bib_source 
304                         merge_profile
305                         create_assets
306                         import_no_match 
307                         auto_overlay_exact 
308                         auto_overlay_1match 
309                         auto_overlay_best_match
310                     -->
311                 </vandelay>
312             </provider>
313
314             <!-- Add more as needed...
315             <provider>
316                 ...
317             </provider>
318             -->
319
320         </acq_order_reader>
321
322
323         <!-- no apps are enabled globally by default -->
324         <activeapps/> 
325
326         <cache>
327             <!-- memcache servers -->
328             <global>
329                 <servers>
330                     <server>127.0.0.1:11211</server>
331                 </servers>
332                 <max_cache_time>86400</max_cache_time>
333             </global>
334             <anon>
335                 <!-- anonymous cache.  currently, primarily used for web session caching -->
336                 <servers>
337                     <server>127.0.0.1:11211</server>
338                 </servers>
339                 <max_cache_time>1800</max_cache_time>
340                 <!-- maximum size of a single cache entry / default = 100k-->
341                 <max_cache_size>102400</max_cache_size>
342             </anon>
343         </cache>
344
345         <apps>
346             <!-- Acquisitions server -->
347             <open-ils.acq>
348                 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
349                 <keepalive>5</keepalive>
350                 <!-- true if this service support stateless requests -->
351                 <stateless>1</stateless>
352                 <!-- implementation language -->
353                 <language>perl</language>
354                 <!-- name of the library that implements this application -->
355                 <implementation>OpenILS::Application::Acq</implementation>
356                 <!-- maximum OpenSRF REQUEST within a stateful connection -->
357                 <max_requests>100</max_requests>
358                 <unix_config>
359                     <!--
360                     maximum number of top level requests coming to 
361                     this child before the child is recycled
362                     -->
363                     <max_requests>100</max_requests>
364                     <!-- min children to fork -->
365                     <min_children>1</min_children>
366                     <!-- max possible children to fork -->
367                     <max_children>15</max_children>
368                     <!--
369                     C forking implementation does not support 
370                     min/max idle children, but may in the future
371                     -->
372
373                     <!-- min idle children -->
374                     <min_spare_children>1</min_spare_children>
375                     <!-- max idle children -->
376                     <max_spare_children>5</max_spare_children>
377                     <!-- currently, only Perl uses the following 3 settings -->
378                     <unix_sock>open-ils.acq_unix.sock</unix_sock>
379                     <unix_pid>open-ils.acq_unix.pid</unix_pid>
380                     <unix_log>open-ils.acq_unix.log</unix_log>
381                 </unix_config>
382             </open-ils.acq>
383
384             <!-- Authentication server -->
385             <open-ils.auth>
386                 <keepalive>5</keepalive>
387                 <stateless>1</stateless>
388                 <language>c</language>
389                 <implementation>oils_auth.so</implementation>
390                 <unix_config>
391                     <max_requests>1000</max_requests>
392                     <min_children>1</min_children>
393                     <max_children>15</max_children>
394                     <min_spare_children>1</min_spare_children>
395                     <max_spare_children>5</max_spare_children>
396                 </unix_config>
397                 <app_settings>
398                     <!-- defined app-specific settings here -->
399                     <default_timeout>
400                         <!-- default login timeouts based on login type -->
401                         <opac>420</opac>
402                         <staff>7200</staff>
403                         <temp>300</temp>
404                         <persist>2 weeks</persist>
405                     </default_timeout>
406                     <auth_limits>
407                         <seed>30</seed> <!-- amount of time a seed request is valid for -->
408                         <block_time>90</block_time> <!-- amount of time since last auth or seed request to save failure counts -->
409                         <block_count>10</block_count> <!-- number of failures before blocking access -->
410                     </auth_limits>
411                 </app_settings>
412             </open-ils.auth>
413
414             <!-- Authentication proxy server -->
415             <open-ils.auth_proxy>
416                 <keepalive>5</keepalive>
417                 <stateless>1</stateless>
418                 <language>perl</language>
419                 <implementation>OpenILS::Application::AuthProxy</implementation>
420                 <max_requests>93</max_requests>
421
422                 <unix_config>
423                     <max_requests>1000</max_requests>
424                     <unix_log>open-ils.auth-proxy_unix.log</unix_log>
425                     <unix_sock>open-ils.auth-proxy_unix.sock</unix_sock>
426                     <unix_pid>open-ils.auth-proxy_unix.pid</unix_pid>
427                     <min_children>1</min_children>
428                     <max_children>15</max_children>
429                     <min_spare_children>1</min_spare_children>
430                     <max_spare_children>5</max_spare_children>
431                 </unix_config>
432
433                 <app_settings>
434                     <!-- 'enabled' is the master switch; set to 'true' to enable proxied logins -->
435                     <enabled>false</enabled>
436                     <authenticators>
437                         <!-- the following is a sample configuration for the LDAP_Auth module; please adjust as needed -->
438                         <!--
439                         <authenticator>
440                             <name>ldap</name>
441                             <module>OpenILS::Application::AuthProxy::LDAP_Auth</module>
442                             <hostname>name.domain.com</hostname>
443                             <basedn>ou=people,dc=domain,dc=com</basedn>
444                             <authid>cn=username,ou=specials,dc=domain,dc=com</authid>
445                             <id_attr>uid</id_attr>
446                             <password>my_ldap_password_for_authid_user</password>
447                             <login_types>
448                                 <type>staff</type>
449                                 <type>opac</type>
450                             </login_types>
451                             <org_units>
452                                 <unit>103</unit>
453                                 <unit>104</unit>
454                             </org_units>
455                         </authenticator>
456                         -->
457                         <!-- 'native' is a proxied version of Evergreen's standard authentication -->
458                         <authenticator>
459                             <name>native</name>
460                             <!-- you can add 'login_types' and 'org_units' limits to this authenticator as well, if needed -->
461                         </authenticator>
462                     </authenticators>
463                 </app_settings>
464             </open-ils.auth_proxy>
465
466             <!-- Generic search server -->
467             <open-ils.search>
468                 <keepalive>5</keepalive>
469                 <stateless>1</stateless>
470                 <language>perl</language>
471                 <implementation>OpenILS::Application::Search</implementation>
472                 <max_requests>93</max_requests>
473                 <unix_config>
474                     <unix_sock>open-ils.search_unix.sock</unix_sock>
475                     <unix_pid>open-ils.search_unix.pid</unix_pid>
476                     <unix_log>open-ils.search_unix.log</unix_log>
477
478                     <max_requests>1000</max_requests>
479                     <min_children>1</min_children>
480                     <max_children>15</max_children>
481                     <min_spare_children>1</min_spare_children>
482                     <max_spare_children>5</max_spare_children>
483                 </unix_config>
484                 <app_settings>
485                     <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
486                     <marc_html_xsl_slim>oilsMARC21slim2HTMLslim.xsl</marc_html_xsl_slim>
487
488                     <spelling_dictionary>
489                         <!-- 
490                             Optionally configure different dictionaries depending on search context.  
491                             If no dictionaries are defined, the default Aspell dictionary is used.
492                         -->
493                         <!--
494                         <default>LOCALSTATEDIR/data/default_dict.txt</default>
495                         <title>LOCALSTATEDIR/data/title_dict.txt</title>
496                         <author>LOCALSTATEDIR/data/author_dict.txt</author>
497                         <subject>LOCALSTATEDIR/data/subject_dict.txt</subject>
498                         <series>LOCALSTATEDIR/data/series_dict.txt</series>
499                         -->
500                     </spelling_dictionary>
501
502                     <!-- Default to using staged search -->
503                     <use_staged_search>true</use_staged_search>
504
505                     <!--
506                         For staged search, we estimate hits based on inclusion or exclusion.
507
508                         Valid settings:
509                             inclusion - visible ratio on superpage
510                             exclusion - excluded ratio on superpage
511                             delete_adjusted_inclusion - included ratio on superpage, ratio adjusted by deleted count
512                             delete_adjusted_exclusion - excluded ratio on superpage, ratio adjusted by deleted count
513
514                         Under normal circumstances, inclusion is the best strategy, and both delete_adjusted variants
515                         will return the same value +/- 1.  The exclusion strategy is the original, and works well
516                         when there are few deleted or excluded records, in other words, when the superpage is not
517                         sparsely populated with visible records.
518                     -->
519                     <estimation_strategy>inclusion</estimation_strategy>
520
521                     <!--
522                         Evergreen uses a cover density algorithm for calculating relative ranking of matches.  There
523                         are several tuning parameters and options available.  By default, no document length normalization
524                         is applied.  From the Postgres documentation on ts_rank_cd() (the function used by Evergreen):
525
526                             Since a longer document has a greater chance of containing a query term it is reasonable 
527                             to take into account document size, e.g., a hundred-word document with five instances of 
528                             a search word is probably more relevant than a thousand-word document with five instances. 
529                             Both ranking functions take an integer normalization option that specifies whether and how 
530                             a document's length should impact its rank. The integer option controls several behaviors, 
531                             so it is a bit mask: you can specify one or more behaviors using | (for example, 2|4).
532
533                                 0 (the default) ignores the document length
534
535                                 1 divides the rank by 1 + the logarithm of the document length
536
537                                 2 divides the rank by the document length
538
539                                 4 divides the rank by the mean harmonic distance between extents (this is implemented only by ts_rank_cd)
540
541                                 8 divides the rank by the number of unique words in document
542
543                                 16 divides the rank by 1 + the logarithm of the number of unique words in document
544
545                                 32 divides the rank by itself + 1
546
547                             If more than one flag bit is specified, the transformations are applied in the order listed.
548
549                             It is important to note that the ranking functions do not use any global information, so it 
550                             is impossible to produce a fair normalization to 1% or 100% as sometimes desired. Normalization 
551                             option 32 (rank/(rank+1)) can be applied to scale all ranks into the range zero to one, but of 
552                             course this is just a cosmetic change; it will not affect the ordering of the search results.
553
554                         In Evergreen, these options are set via search modifiers.  The modifiers are mapped in the
555                         following way:
556
557                             * #CD_logDocumentLength  => 1  :: rank / (1 + LOG(total_word_count))   :: Longer documents slightly less relevant
558                             * #CD_documentLength     => 2  :: rank / total_word_count              :: Longer documents much less relevant
559                             * #CD_meanHarmonic       => 4  :: Word Proximity                       :: Greater matched-word distance is less relevant
560                             * #CD_uniqueWords        => 8  :: rank / unique_word_count             :: Documents with repeated words much less relevant
561                             * #CD_logUniqueWords     => 16 :: rank / (1 + LOG(unique_word_count))  :: Documents with repeated words slightly less relevant
562                             * #CD_selfPlusOne        => 32 :: rank / (1 + rank)                    :: Cosmetic normalization of rank value between 0 and 1
563
564                         Adding one or more of these to the default_CD_modifiers list will cause all searches that use QueryParser to apply them.
565                     -->
566                     <default_CD_modifiers>#CD_documentLength #CD_meanHarmonic #CD_uniqueWords</default_CD_modifiers>
567
568                     <!--
569                         default_preferred_language
570                             Set the global, default preferred languange
571                     -->
572                     <default_preferred_language>eng</default_preferred_language>
573
574                     <!--
575                         default_preferred_language_weight
576                             Set the weight (higher is "better") for the preferred language. Comment out to remove all lanuage weighting by default.
577                     -->
578                     <default_preferred_language_weight>5</default_preferred_language_weight>
579
580                     <!-- Baseline number of records to check for hit estimation. -->
581                     <superpage_size>1000</superpage_size>
582
583                     <!-- How many superpages to consider for searching overall. -->
584                     <max_superpages>10</max_superpages>
585
586                     <!-- zip code database file -->
587                     <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
588                 </app_settings>
589             </open-ils.search>
590
591             <!-- server for accessing user info -->
592             <open-ils.actor>
593                 <keepalive>5</keepalive>
594                 <stateless>1</stateless>
595                 <language>perl</language>
596                 <implementation>OpenILS::Application::Actor</implementation>
597                 <max_requests>93</max_requests>
598                 <unix_config>
599                     <unix_sock>open-ils.actor_unix.sock</unix_sock>
600                     <unix_pid>open-ils.actor_unix.pid</unix_pid>
601                     <max_requests>1000</max_requests>
602                     <unix_log>open-ils.actor_unix.log</unix_log>
603                     <min_children>1</min_children>
604                     <max_children>15</max_children>
605                     <min_spare_children>1</min_spare_children>
606                     <max_spare_children>5</max_spare_children>
607                 </unix_config>
608                 <!-- set this to 'true' to have barcode search also search patron records by unique ID -->
609                 <app_settings>
610                     <id_as_barcode>false</id_as_barcode>
611                 </app_settings>
612
613             </open-ils.actor>
614
615             <open-ils.booking>
616                 <keepalive>5</keepalive>
617                 <stateless>1</stateless>
618                 <language>perl</language>
619                 <implementation>OpenILS::Application::Booking</implementation>
620                 <max_requests>199</max_requests>
621                 <unix_config>
622                     <unix_sock>open-ils.booking_unix.sock</unix_sock>
623                     <unix_pid>open-ils.booking_unix.pid</unix_pid>
624                     <max_requests>1000</max_requests>
625                     <unix_log>open-ils.booking_unix.log</unix_log>
626                     <min_children>1</min_children>
627                     <max_children>15</max_children>
628                     <min_spare_children>1</min_spare_children>
629                     <max_spare_children>5</max_spare_children>
630                 </unix_config>
631                 <app_settings>
632                 </app_settings>
633             </open-ils.booking>
634
635             <open-ils.cat>
636                 <keepalive>5</keepalive>
637                 <stateless>1</stateless>
638                 <language>perl</language>
639                 <implementation>OpenILS::Application::Cat</implementation>
640                 <max_requests>199</max_requests>
641                 <unix_config>
642                     <unix_sock>open-ils.cat_unix.sock</unix_sock>
643                     <unix_pid>open-ils.cat_unix.pid</unix_pid>
644                     <max_requests>1000</max_requests>
645                     <unix_log>open-ils.cat_unix.log</unix_log>
646                     <min_children>1</min_children>
647                     <max_children>15</max_children>
648                     <min_spare_children>1</min_spare_children>
649                     <max_spare_children>5</max_spare_children>
650                 </unix_config>
651                 <app_settings>
652                     <marctemplates>
653                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
654                     </marctemplates>
655                 </app_settings>
656             </open-ils.cat>
657
658             <open-ils.supercat>
659                 <keepalive>5</keepalive>
660                 <stateless>1</stateless>
661                 <language>perl</language>
662                 <implementation>OpenILS::Application::SuperCat</implementation>
663                 <max_requests>199</max_requests>
664                 <unix_config>
665                     <unix_sock>open-ils.supercat_unix.sock</unix_sock>
666                     <unix_pid>open-ils.supercat_unix.pid</unix_pid>
667                     <max_requests>1000</max_requests>
668                     <unix_log>open-ils.supercat_unix.log</unix_log>
669                     <min_children>1</min_children>
670                     <max_children>15</max_children>
671                     <min_spare_children>1</min_spare_children>
672                     <max_spare_children>5</max_spare_children>
673                 </unix_config>
674             </open-ils.supercat>
675
676             <!-- server for accessing user info -->
677             <open-ils.trigger>
678                 <keepalive>5</keepalive>
679                 <stateless>1</stateless>
680                 <language>perl</language>
681                 <implementation>OpenILS::Application::Trigger</implementation>
682                 <max_requests>93</max_requests>
683                 <unix_config>
684                     <unix_sock>open-ils.trigger_unix.sock</unix_sock>
685                     <unix_pid>open-ils.trigger_unix.pid</unix_pid>
686                     <max_requests>1000</max_requests>
687                     <unix_log>open-ils.trigger_unix.log</unix_log>
688                     <min_children>1</min_children>
689                     <max_children>15</max_children>
690                     <min_spare_children>1</min_spare_children>
691                     <max_spare_children>5</max_spare_children>
692                 </unix_config>
693                 <app_settings>
694                     <!-- number of parallel open-ils.trigger processes to use for collection and reaction -->
695                     <!--
696                     <parallel>
697                         <collect>3</collect>
698                         <react>3</react>
699                     </parallel>
700                     -->
701                 </app_settings>
702             </open-ils.trigger>
703
704             <open-ils.url_verify>
705                 <keepalive>5</keepalive>
706                 <stateless>1</stateless>
707                 <language>perl</language>
708                 <implementation>OpenILS::Application::URLVerify</implementation>
709                 <max_requests>199</max_requests>
710                 <unix_config>
711                     <unix_sock>open-ils.url_verify_unix.sock</unix_sock>
712                     <unix_pid>open-ils.url_verify_unix.pid</unix_pid>
713                     <max_requests>1000</max_requests>
714                     <unix_log>open-ils.url_verify_unix.log</unix_log>
715                     <min_children>1</min_children>
716                     <max_children>15</max_children>
717                     <min_spare_children>1</min_spare_children>
718                     <max_spare_children>5</max_spare_children>
719                 </unix_config>
720                 <app_settings>
721                     <user_agent>Evergreen %s Link Checker</user_agent>
722                 </app_settings>
723             </open-ils.url_verify>
724
725             <opensrf.math>
726                 <keepalive>3</keepalive>
727                 <stateless>1</stateless>
728                 <language>c</language>
729                 <implementation>osrf_math.so</implementation>
730                 <unix_config>
731                     <unix_sock>opensrf.math_unix.sock</unix_sock>
732                     <unix_pid>opensrf.math_unix.pid</unix_pid>
733                     <max_requests>1000</max_requests>
734                     <unix_log>opensrf.math_unix.log</unix_log>
735                     <min_children>1</min_children>
736                     <max_children>15</max_children>
737                     <min_spare_children>1</min_spare_children>
738                     <max_spare_children>5</max_spare_children>
739                 </unix_config>
740             </opensrf.math>
741
742             <opensrf.dbmath> 
743                 <keepalive>3</keepalive>
744                 <stateless>1</stateless>
745                 <language>c</language>
746                 <implementation>osrf_dbmath.so</implementation>
747                 <unix_config>
748                     <max_requests>1000</max_requests>
749                     <unix_log>opensrf.dbmath_unix.log</unix_log>
750                     <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
751                     <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
752                     <min_children>1</min_children>
753                     <max_children>15</max_children>
754                     <min_spare_children>1</min_spare_children> 
755                     <max_spare_children>5</max_spare_children>
756                 </unix_config>
757             </opensrf.dbmath>
758
759             <open-ils.penalty>
760                 <keepalive>3</keepalive>
761                 <stateless>1</stateless>
762                 <language>perl</language>
763                 <implementation>OpenILS::Application::Penalty</implementation>
764                 <max_requests>99</max_requests>
765                 <unix_config>
766                     <max_requests>1000</max_requests>
767                     <unix_log>open-ils.penalty_unix.log</unix_log>
768                     <unix_sock>open-ils.penalty_unix.sock</unix_sock>
769                     <unix_pid>open-ils.penalty_unix.pid</unix_pid>
770                     <min_children>1</min_children>
771                     <max_children>15</max_children>
772                     <min_spare_children>1</min_spare_children>
773                     <max_spare_children>5</max_spare_children>
774                 </unix_config>
775                 <app_settings>
776                     <patron_penalty>penalty/patron_penalty.js</patron_penalty>
777                     <script_path>LIBDIR/javascript</script_path>
778                     <script_path>LOCALSTATEDIR</script_path>
779                     <script_path>LOCALSTATEDIR/catalog</script_path>
780                 </app_settings>
781             </open-ils.penalty>
782
783             <open-ils.justintime>
784                 <keepalive>5</keepalive>
785                 <stateless>1</stateless>
786                 <language>perl</language>
787                 <implementation>OpenILS::Application::JustInTime</implementation>
788                 <max_requests>199</max_requests>
789                 <unix_config>
790                     <unix_sock>open-ils.justintime_unix.sock</unix_sock>
791                     <unix_pid>open-ils.justintime_unix.pid</unix_pid>
792                     <max_requests>1000</max_requests>
793                     <unix_log>open-ils.justintime_unix.log</unix_log>
794                     <min_children>1</min_children>
795                     <max_children>15</max_children>
796                     <min_spare_children>1</min_spare_children>
797                     <max_spare_children>5</max_spare_children>
798                 </unix_config>
799                 <app_settings>
800                 </app_settings>
801             </open-ils.justintime>
802
803             <open-ils.circ> 
804                 <keepalive>3</keepalive>
805                 <stateless>1</stateless>
806                 <language>perl</language>
807                 <implementation>OpenILS::Application::Circ</implementation>
808                 <max_requests>99</max_requests>
809                 <unix_config>
810                     <max_requests>1000</max_requests>
811                     <unix_log>open-ils.circ_unix.log</unix_log>
812                     <unix_sock>open-ils.circ_unix.sock</unix_sock>
813                     <unix_pid>open-ils.circ_unix.pid</unix_pid>
814                     <min_children>1</min_children>
815                     <max_children>15</max_children>
816                     <min_spare_children>1</min_spare_children> 
817                     <max_spare_children>5</max_spare_children>
818                 </unix_config>
819                 <app_settings>
820                     <notify_hold>
821                         <email>false</email> <!-- set to false to disable hold notice emails -->
822                     </notify_hold>
823
824                     <!-- circulation policy scripts -->
825                     <script_path>LIBDIR/javascript</script_path>
826                     <script_path>LOCALSTATEDIR</script_path>
827                     <script_path>LOCALSTATEDIR/catalog</script_path>
828                     <legacy_script_support>false</legacy_script_support>
829                     <scripts> 
830                         <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
831                         <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
832                         <circ_duration>circ/circ_duration.js</circ_duration>
833                         <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
834                         <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
835                         <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
836                         <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
837                     </scripts>               
838
839                 </app_settings>
840             </open-ils.circ>
841
842             <open-ils.storage>
843                 <keepalive>10</keepalive>
844                 <stateless>1</stateless>
845                 <language>perl</language>
846                 <implementation>OpenILS::Application::Storage</implementation>
847                 <unix_config>
848                     <max_requests>1000</max_requests>
849                     <unix_log>open-ils.storage_unix.log</unix_log>
850                     <unix_sock>open-ils.storage_unix.sock</unix_sock>
851                     <unix_pid>open-ils.storage_unix.pid</unix_pid>
852                     <min_children>1</min_children>
853                     <max_children>10</max_children>
854                     <min_spare_children>1</min_spare_children>
855                     <max_spare_children>5</max_spare_children>
856                 </unix_config>
857                 <app_settings>
858                     <script_path>LIBDIR/javascript/</script_path>
859                     <script_path>LOCALSTATEDIR/catalog/</script_path>
860                     <scripts>
861                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
862                     </scripts>
863                     <databases>
864                         <driver>Pg</driver>
865                         <database>
866                             <type>master</type>
867                             <weight>2</weight>
868                             <user>postgres</user>
869                             <host>localhost</host>
870                             <port>5432</port>
871                             <pw>postgres</pw>
872                             <db>evergreen</db>
873                             <client_encoding>UTF-8</client_encoding>
874                         </database>
875                     </databases>
876                 </app_settings>
877             </open-ils.storage>
878
879             <open-ils.cstore>
880                 <keepalive>6</keepalive>
881                 <stateless>1</stateless>
882                 <language>C</language>
883                 <implementation>oils_cstore.so</implementation>
884                 <unix_config>
885                     <max_requests>1000</max_requests>
886                     <min_children>1</min_children>
887                     <max_children>15</max_children>
888                     <min_spare_children>1</min_spare_children>
889                     <max_spare_children>5</max_spare_children>
890                 </unix_config>
891                 <app_settings>
892                     <max_query_recursion>100</max_query_recursion>
893                     <driver>pgsql</driver>
894                     <database>
895                         <type>master</type>
896                         <weight>2</weight>
897                         <user>postgres</user>
898                         <host>localhost</host>
899                         <port>5432</port>
900                         <pw>postgres</pw>
901                         <db>evergreen</db>
902                         <client_encoding>UTF-8</client_encoding>
903                     </database>
904                 </app_settings>
905             </open-ils.cstore>
906
907             <open-ils.pcrud>
908                 <keepalive>6</keepalive>
909                 <migratable>1</migratable>
910                 <stateless>1</stateless>
911                 <language>C</language>
912                 <implementation>oils_pcrud.so</implementation>
913
914                 <unix_config>
915                     <unix_log>open-ils.pcrud.log</unix_log>
916                     <unix_sock>open-ils.pcrud.sock</unix_sock>
917                     <unix_pid>open-ils.pcrud.pid</unix_pid>
918                     <max_requests>1000</max_requests>
919                     <min_children>1</min_children>
920                     <max_children>15</max_children>
921                     <min_spare_children>1</min_spare_children>
922                     <max_spare_children>5</max_spare_children>
923                 </unix_config>
924
925                 <app_settings>
926                     <IDL>SYSCONFDIR/fm_IDL.xml</IDL>
927                     <driver>pgsql</driver>
928                     <database>
929                         <type>master</type>
930                         <weight>2</weight>
931                         <user>postgres</user>
932                         <host>localhost</host>
933                         <port>5432</port>
934                         <pw>postgres</pw>
935                         <db>evergreen</db>
936                         <client_encoding>UTF-8</client_encoding>
937                     </database>
938                 </app_settings>
939             </open-ils.pcrud>
940
941             <open-ils.qstore>
942                 <keepalive>6</keepalive>
943                 <stateless>1</stateless>
944                 <language>C</language>
945                 <implementation>oils_qstore.so</implementation>
946                 <unix_config>
947                     <max_requests>1000</max_requests>
948                     <min_children>1</min_children>
949                     <max_children>15</max_children>
950                     <min_spare_children>1</min_spare_children>
951                     <max_spare_children>5</max_spare_children>
952                 </unix_config>
953                 <app_settings>
954                     <driver>pgsql</driver>
955                     <database>
956                         <type>master</type>
957                         <weight>2</weight>
958                         <user>postgres</user>
959                         <host>localhost</host>
960                         <port>5432</port>
961                         <pw>postgres</pw>
962                         <db>evergreen</db>
963                         <client_encoding>UTF-8</client_encoding>
964                     </database>
965                 </app_settings>
966             </open-ils.qstore>
967
968             <opensrf.settings>
969                 <keepalive>1</keepalive>
970                 <stateless>1</stateless>
971                 <language>perl</language>
972                 <implementation>OpenSRF::Application::Settings</implementation>
973                 <max_requests>17</max_requests>
974                 <unix_config>
975                     <unix_sock>opensrf.settings_unix.sock</unix_sock>
976                     <unix_pid>opensrf.settings_unix.pid</unix_pid>
977                     <max_requests>300</max_requests>
978                     <unix_log>opensrf.settings_unix.log</unix_log>
979                     <min_children>5</min_children>
980                     <max_children>15</max_children>
981                     <min_spare_children>3</min_spare_children>
982                     <max_spare_children>5</max_spare_children>
983                 </unix_config>
984             </opensrf.settings>
985
986             <open-ils.collections>
987                 <keepalive>3</keepalive>
988                 <stateless>1</stateless>
989                 <language>perl</language>
990                 <implementation>OpenILS::Application::Collections</implementation>
991                 <max_requests>17</max_requests>
992                 <unix_config>
993                     <unix_sock>open-ils.collections_unix.sock</unix_sock>
994                     <unix_pid>open-ils.collections_unix.pid</unix_pid>
995                     <max_requests>1000</max_requests>
996                     <unix_log>open-ils.collections_unix.log</unix_log>
997                     <min_children>1</min_children>
998                     <max_children>10</max_children>
999                     <min_spare_children>1</min_spare_children>
1000                     <max_spare_children>5</max_spare_children>
1001                 </unix_config>
1002                 <app_settings>
1003                     <!-- batch_file_dir must be a protected, web-accessible, shared directory -->
1004                     <batch_file_dir>/openils/var/web/collections</batch_file_dir>
1005                 </app_settings>
1006             </open-ils.collections>
1007
1008             <open-ils.reporter>
1009                 <keepalive>3</keepalive>
1010                 <stateless>1</stateless>
1011                 <language>perl</language>
1012                 <implementation>OpenILS::Application::Reporter</implementation>
1013                 <max_requests>99</max_requests>
1014                 <unix_config>
1015                     <unix_sock>open-ils.reporter_unix.sock</unix_sock>
1016                     <unix_pid>open-ils.reporter_unix.pid</unix_pid>
1017                     <max_requests>1000</max_requests>
1018                     <unix_log>open-ils.reporter_unix.log</unix_log>
1019                     <min_children>1</min_children>
1020                     <max_children>10</max_children>
1021                     <min_spare_children>1</min_spare_children>
1022                     <max_spare_children>5</max_spare_children>
1023                 </unix_config>
1024             </open-ils.reporter>
1025
1026             <open-ils.reporter-store>
1027                 <keepalive>6</keepalive>
1028                 <stateless>1</stateless>
1029                 <language>C</language>
1030                 <implementation>oils_rstore.so</implementation>
1031                 <unix_config>
1032                     <max_requests>400</max_requests>
1033                     <min_children>1</min_children>
1034                     <max_children>10</max_children>
1035                     <min_spare_children>1</min_spare_children>
1036                     <max_spare_children>5</max_spare_children>
1037                 </unix_config>
1038                 <app_settings>
1039                     <driver>pgsql</driver>
1040                     <database>
1041                         <type>master</type>
1042                         <weight>2</weight>
1043                         <user>postgres</user>
1044                         <host>localhost</host>
1045                         <port>5432</port>
1046                         <pw>postgres</pw>
1047                         <db>evergreen</db>
1048                         <client_encoding>UTF-8</client_encoding>
1049                     </database>
1050                 </app_settings>
1051             </open-ils.reporter-store>
1052
1053 <!-- resolver_type defaults to sfx but can also be cufts -->
1054 <!--
1055            <open-ils.resolver>
1056                <keepalive>3</keepalive>
1057                <stateless>1</stateless>
1058                <language>perl</language>
1059                <implementation>OpenILS::Application::ResolverResolver</implementation>
1060                <max_requests>93</max_requests>
1061                <unix_config>
1062                   <unix_sock>open-ils.resolver_unix.sock</unix_sock>
1063                   <unix_pid>open-ils.resolver_unix.pid</unix_pid>
1064                   <max_requests>1000</max_requests>
1065                   <unix_log>open-ils.resolver_unix.log</unix_log>
1066                   <min_children>5</min_children>
1067                   <max_children>15</max_children>
1068                   <min_spare_children>3</min_spare_children>
1069                   <max_spare_children>5</max_spare_children>
1070                </unix_config>
1071                <app_settings>
1072                   <cache_timeout>86400</cache_timeout>
1073                   <request_timeout>10</request_timeout>
1074                   <default_url_base>http://path/to/sfx_or_cufts</default_url_base>
1075                   <resolver_type>sfx</resolver_type>
1076                </app_settings>
1077             </open-ils.resolver>
1078 -->
1079
1080             <open-ils.permacrud>
1081                <keepalive>3</keepalive>
1082                <stateless>1</stateless>
1083                <language>perl</language>
1084                <implementation>OpenILS::Application::PermaCrud</implementation>
1085                <max_requests>17</max_requests>
1086                <unix_config>
1087                   <unix_sock>open-ils.permacrud_unix.sock</unix_sock>
1088                   <unix_pid>open-ils.permacrud_unix.pid</unix_pid>
1089                   <max_requests>1000</max_requests>
1090                   <unix_log>open-ils.permacrud_unix.log</unix_log>
1091                   <min_children>5</min_children>
1092                   <max_children>15</max_children>
1093                   <min_spare_children>3</min_spare_children>
1094                   <max_spare_children>5</max_spare_children>
1095                </unix_config>
1096             </open-ils.permacrud>
1097
1098             <open-ils.fielder>
1099                <keepalive>3</keepalive>
1100                <stateless>1</stateless>
1101                <language>perl</language>
1102                <implementation>OpenILS::Application::Fielder</implementation>
1103                <max_requests>17</max_requests>
1104                <unix_config>
1105                   <unix_sock>open-ils.fielder_unix.sock</unix_sock>
1106                   <unix_pid>open-ils.fielder_unix.pid</unix_pid>
1107                   <max_requests>1000</max_requests>
1108                   <unix_log>open-ils.fielder_unix.log</unix_log>
1109                   <min_children>5</min_children>
1110                   <max_children>15</max_children>
1111                   <min_spare_children>3</min_spare_children>
1112                   <max_spare_children>5</max_spare_children>
1113                </unix_config>
1114             </open-ils.fielder>
1115
1116             <open-ils.vandelay>
1117                 <keepalive>5</keepalive>
1118                 <stateless>1</stateless>
1119                 <language>perl</language>
1120                 <implementation>OpenILS::Application::Vandelay</implementation>
1121                 <max_requests>100</max_requests>
1122                 <unix_config>
1123                     <unix_sock>vandelay_unix.sock</unix_sock>
1124                     <unix_pid>vandelay_unix.pid</unix_pid>
1125                     <unix_log>vandelay_unix.log</unix_log>
1126                     <max_requests>100</max_requests>
1127                     <min_children>1</min_children>
1128                     <max_children>15</max_children>
1129                     <min_spare_children>1</min_spare_children>
1130                     <max_spare_children>5</max_spare_children>
1131                 </unix_config>
1132                 <app_settings>
1133                     <databases>
1134                         <!-- temporary location for MARC import files.  
1135                             Files will be deleted after records are spooled.
1136                             *note:  in a multi-brick environment, this will need to
1137                             be on a write-able NFS share.  -->
1138                         <importer>/tmp</importer>
1139                     </databases>
1140                 </app_settings>
1141             </open-ils.vandelay>
1142
1143             <open-ils.serial>
1144                 <keepalive>3</keepalive>
1145                 <stateless>1</stateless>
1146                 <language>perl</language>
1147                 <implementation>OpenILS::Application::Serial</implementation>
1148                 <max_requests>17</max_requests>
1149                 <unix_config>
1150                     <unix_sock>open-ils.serial_unix.sock</unix_sock>
1151                     <unix_pid>open-ils.serial_unix.pid</unix_pid>
1152                     <max_requests>1000</max_requests>
1153                     <unix_log>open-ils.serial_unix.log</unix_log>
1154                     <min_children>5</min_children>
1155                     <max_children>15</max_children>
1156                     <min_spare_children>3</min_spare_children>
1157                     <max_spare_children>5</max_spare_children>
1158                 </unix_config>
1159                 <app_settings>
1160                 </app_settings>
1161             </open-ils.serial>
1162
1163         </apps>
1164     </default>
1165
1166     <hosts>
1167
1168         <localhost> 
1169             <!-- ^-=- 
1170             Should match the fully qualified domain name of the host.
1171
1172             On Linux, the output of the following command is authoritative:
1173             $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
1174
1175             To use 'localhost' instead, run osrf_control with the 'localhost' flag
1176             -->
1177
1178             <activeapps>
1179                 <!-- services hosted on this machine -->
1180                 <appname>opensrf.settings</appname> 
1181                 <appname>opensrf.math</appname> 
1182                 <appname>opensrf.dbmath</appname> 
1183                 <appname>open-ils.acq</appname> 
1184                 <appname>open-ils.booking</appname>
1185                 <appname>open-ils.cat</appname> 
1186                 <appname>open-ils.supercat</appname> 
1187                 <appname>open-ils.search</appname> 
1188                 <appname>open-ils.circ</appname> 
1189                 <appname>open-ils.actor</appname> 
1190                 <appname>open-ils.auth</appname> 
1191                 <appname>open-ils.auth_proxy</appname> 
1192                 <appname>open-ils.storage</appname>  
1193                 <appname>open-ils.penalty</appname>  
1194                 <appname>open-ils.justintime</appname>  
1195                 <appname>open-ils.cstore</appname>  
1196                 <appname>open-ils.collections</appname>  
1197                 <appname>open-ils.reporter</appname>  
1198                 <appname>open-ils.reporter-store</appname>  
1199                 <!-- <appname>open-ils.resolver</appname> -->
1200                 <appname>open-ils.permacrud</appname>  
1201                 <appname>open-ils.pcrud</appname>  
1202                 <appname>open-ils.trigger</appname>  
1203                 <appname>open-ils.url_verify</appname>
1204                 <appname>open-ils.fielder</appname>  
1205                 <appname>open-ils.vandelay</appname>  
1206                 <appname>open-ils.serial</appname>  
1207             </activeapps>
1208         </localhost>
1209     </hosts>
1210
1211 </opensrf>