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