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