]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/openils.xml.example
added much control over holds during placement and after the fact
[Evergreen.git] / Open-ILS / examples / openils.xml.example
1 <?xml version='1.0'?>
2
3 <!-- 
4 Example opensrf config file for OpenILS
5 See opensrf.xml.example for core config documentation 
6 For non-core config info, see the inline documentation within this file
7 -->
8
9 <opensrf version='0.0.1'>
10
11
12         <default>
13         
14                 <dirs>
15                         <log>/openils/var/log</log>
16                         <sock>/openils/var/sock</sock>
17                         <pid>/openils/var/pid</pid>
18
19                         <!-- xsl stylesheets go here -->
20                         <xsl>/openils/var/xsl</xsl>
21                         <conf>/openils/var/conf</conf>
22                         <script>/openils/var/data</script>
23                         <script_lib>/openils/var/data</script_lib>
24                 </dirs>
25
26                 <server_type>prefork</server_type>
27
28                 <!-- script for exception strings -->
29                 <ex_script>/openils/var/templates/strings/ex.ttk</ex_script>
30                 <perm_script>/openils/var/templates/strings/perm.ttk</perm_script>
31                 <ils_events>/openils/var/data/ils_events.xml</ils_events>
32
33                 <z3950>
34
35                         <default>oclc</default>
36
37                         <!-- OpenILS currently only searches the 'oclc' database when
38                                         doing Z39.50 importing... -->
39                         <oclc>
40                                 <host>zcat.oclc.org</host>
41                                 <port>210</port>
42                                 <db>OLUCWorldCat</db>
43                                 <tcnattr>12</tcnattr> 
44                                 <isbnattr>7</isbnattr>
45                                 <username>my_username</username>
46                                 <password>my_password</password>
47                         </oclc>
48
49                         <loc> <!-- loc has not been incorporated into the system yet -->
50                                 <name>loc</name>
51                                 <host>z3950.loc.gov</host>
52                                 <port>7090</port>
53                                 <db>Voyager</db>
54                                 <username></username>
55                                 <password></password>
56                         </loc>
57
58                 </z3950>
59
60
61                 <activeapps/> 
62
63                 <cache>
64                         <global>
65                                 <servers>
66                                         <server>127.0.0.1:10101</server>
67                                 </servers>
68                                 <max_cache_time>86400</max_cache_time>
69                         </global>
70                 </cache>
71
72                 <apps>
73
74                         <opensrf.persist>
75                                 <keepalive>1</keepalive>
76                                 <stateless>1</stateless>
77                                 <language>perl</language>
78                                 <implementation>OpenSRF::Application::Persist</implementation>
79                                 <max_requests>97</max_requests>
80                                 <unix_config>
81                                         <unix_sock>opensrf.persist_unix.sock</unix_sock>
82                                         <unix_pid>opensrf.persist_unix.pid</unix_pid>
83                                         <max_requests>1000</max_requests>
84                                         <unix_log>opensrf.persist_unix.log</unix_log>
85                                         <min_children>5</min_children>
86                                         <max_children>25</max_children>
87                                         <min_spare_children>2</min_spare_children>
88                                         <max_spare_children>5</max_spare_children>
89                                 </unix_config>
90
91                                 <app_settings>
92                                         <dbfile>/openils/var/db/persist.db</dbfile>
93                                 </app_settings>
94
95                         </opensrf.persist>
96
97                         <!-- Authentication server -->
98                         <open-ils.auth>
99                                 <keepalive>5</keepalive>
100                                 <stateless>1</stateless>
101                                 <language>C</language>
102                                 <implementation>oils_auth.so</implementation>
103                                 <max_requests>93</max_requests>
104
105                                 <unix_config>
106                                         <unix_sock>open-ils.auth_unix.sock</unix_sock>
107                                         <unix_pid>open-ils.auth_unix.pid</unix_pid>
108                                         <max_requests>1000</max_requests>
109                                         <unix_log>open-ils.auth_unix.log</unix_log>
110                                         <min_children>5</min_children>
111                                         <max_children>35</max_children>
112                                         <min_spare_children>2</min_spare_children>
113                                         <max_spare_children>5</max_spare_children>
114                                 </unix_config>
115
116                                 <app_settings>
117                                         <!-- if true, user sessions will be persisted via the OpenSRF persist 
118                                                         server in addition to memcache -->
119                                         <persist_users>0</persist_users>
120
121                                         <!-- default session timeouts by login type -->
122                                         <default_timeout>
123                                                 <opac>300</opac>
124                                                 <staff>28800</staff>
125                                            <override>300</override> <!-- temporary login -->
126                                         </default_timeout>
127
128                                 </app_settings>
129
130                         </open-ils.auth>
131
132
133                         <!-- Generic search server -->
134                         <open-ils.search>
135                                 <keepalive>5</keepalive>
136                                 <stateless>1</stateless>
137                                 <language>perl</language>
138                                 <implementation>OpenILS::Application::Search</implementation>
139                                 <max_requests>93</max_requests>
140
141                                 <unix_config>
142                                         <unix_sock>open-ils.search_unix.sock</unix_sock>
143                                         <unix_pid>open-ils.search_unix.pid</unix_pid>
144                                         <max_requests>1000</max_requests>
145                                         <unix_log>open-ils.search_unix.log</unix_log>
146                                         <min_children>5</min_children>
147                                         <max_children>35</max_children>
148                                         <min_spare_children>2</min_spare_children>
149                                         <max_spare_children>5</max_spare_children>
150                                 </unix_config>
151
152                                 <app_settings>
153                                         <memcache>127.0.0.1:10101</memcache>
154                                         <max_cache_time>3600</max_cache_time>
155                                         <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
156                                         <added_content>
157                                                 <!-- 
158                                                         Example added content handler.  If this is not defined, the default
159                                                         content handler is used, which returns empty sets for all methods       
160                                                 -->
161                                                 <!--
162                                                 <implementation>Evergreen::Application::Search::AddedContent::ContentCafe</implementation>
163                                                 <host>MY_CONTENT_HOST</host>
164                                                 <username>MY_CONTENT_USERNAME</username>
165                                                 <password>MY_CONTENT_PASSWORD</password>
166                                                 -->
167                                         </added_content>
168
169                                 </app_settings>
170
171                         </open-ils.search>
172
173
174                         <!-- server for accessing user info -->
175                         <open-ils.actor>
176                                 <keepalive>5</keepalive>
177                                 <stateless>1</stateless>
178                                 <language>perl</language>
179                                 <implementation>OpenILS::Application::Actor</implementation>
180                                 <max_requests>93</max_requests>
181
182                                 <unix_config>
183                                         <unix_sock>open-ils.actor_unix.sock</unix_sock>
184                                         <unix_pid>open-ils.actor_unix.pid</unix_pid>
185                                         <max_requests>1000</max_requests>
186                                         <unix_log>open-ils.actor_unix.log</unix_log>
187                                         <min_children>5</min_children>
188                                         <max_children>35</max_children>
189                                         <min_spare_children>2</min_spare_children>
190                                         <max_spare_children>5</max_spare_children>
191                                 </unix_config>
192
193                         </open-ils.actor>
194
195
196
197                         <!-- server for editing title, etc... -->
198                         <open-ils.cat>
199                                 <keepalive>5</keepalive>
200                                 <stateless>1</stateless>
201                                 <language>perl</language>
202                                 <implementation>OpenILS::Application::Cat</implementation>
203                                 <max_requests>199</max_requests>
204
205                                 <unix_config>
206                                         <unix_sock>open-ils.cat_unix.sock</unix_sock>
207                                         <unix_pid>open-ils.cat_unix.pid</unix_pid>
208                                         <max_requests>1000</max_requests>
209                                         <unix_log>open-ils.cat_unix.log</unix_log>
210                                         <min_children>5</min_children>
211                                         <max_children>25</max_children>
212                                         <min_spare_children>2</min_spare_children>
213                                         <max_spare_children>5</max_spare_children>
214                                 </unix_config>
215
216                                 <app_settings>
217                                         <marctemplates>
218                                                 <book>/path/to/templates/marc/book.xml</book>
219                                         </marctemplates>
220                                 </app_settings>
221
222
223                         </open-ils.cat>
224
225
226                         <opensrf.math>
227                                 <keepalive>3</keepalive>
228                                 <stateless>1</stateless>
229                                 <language>C</language>
230                                 <implementation>osrf_math.so</implementation>
231                                 <max_requests>97</max_requests>
232                                 <unix_config>
233                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
234                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
235                                         <max_requests>1000</max_requests>
236                                         <unix_log>opensrf.math_unix.log</unix_log>
237                                         <min_children>5</min_children>
238                                         <max_children>15</max_children>
239                                         <min_spare_children>2</min_spare_children>
240                                         <max_spare_children>5</max_spare_children>
241                                 </unix_config>
242                         </opensrf.math>
243                         
244                         <opensrf.dbmath> 
245                                 <keepalive>3</keepalive>
246                                 <stateless>1</stateless>
247                                 <language>C</language>
248                                 <implementation>osrf_dbmath.so</implementation>
249                                 <max_requests>99</max_requests>
250                                 <unix_config>
251                                         <max_requests>1000</max_requests>
252                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
253                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
254                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
255                                         <min_children>5</min_children>
256                                         <max_children>15</max_children>
257                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
258                                 </unix_config>
259                         </opensrf.dbmath>
260
261                         <!-- Circulation server -->
262                         <open-ils.circ> 
263                                 <keepalive>3</keepalive>
264                                 <stateless>1</stateless>
265                                 <language>perl</language>
266                                 <implementation>OpenILS::Application::Circ</implementation>
267                                 <max_requests>99</max_requests>
268                                 <unix_config>
269                                         <max_requests>1000</max_requests>
270                                         <unix_log>open-ils.circ_unix.log</unix_log>
271                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
272                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
273                                         <min_children>5</min_children>
274                                         <max_children>25</max_children>
275                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
276                                 </unix_config>
277
278                                 <app_settings>
279                                         <rules>
280                                                 <permission>permit_circ.rules</permission>
281                                                 <duration>calculate_duration.rules</duration>
282                                                 <recurring_fines>calculate_recurring_fines.rules</recurring_fines>
283                                                 <max_fines>calculate_max_fines.rules</max_fines>
284                                                 <permit_hold>permit_hold.rules</permit_hold>
285                                                 <permit_renew>permit_renew.rules</permit_renew>
286                                         </rules>
287
288                                         <script_path>/openils/var/circ/</script_path>
289                <scripts>
290                   <circ_permit_patron>circ_permit_patron.js</circ_permit_patron>
291                   <circ_permit_copy>circ_permit_copy.js</circ_permit_copy>
292                   <circ_duration>circ_duration.js</circ_duration>
293                   <circ_recurring_fines>circ_recurring_fines.js</circ_recurring_fines>
294                   <circ_max_fines>circ_max_fines.js</circ_max_fines>
295                   <circ_permit_renew>circ_permit_renew.js</circ_permit_renew>
296                   <circ_permit_hold>circ_permit_hold.js</circ_permit_hold>
297                </scripts>        
298
299                                 </app_settings>
300
301                         </open-ils.circ>
302
303                         <!-- Database storage server -->
304                         <open-ils.storage>
305                                 <keepalive>3</keepalive>
306                                 <stateless>1</stateless>
307                                 <language>perl</language>
308                                 <implementation>OpenILS::Application::Storage</implementation>
309                                 <unix_config>
310                                         <max_requests>1000</max_requests>
311                                         <unix_log>storage_unix.log</unix_log>
312                                         <unix_sock>storage_unix.sock</unix_sock>
313                                         <unix_pid>storage_unix.pid</unix_pid>
314                                         <max_requests>1000</max_requests>
315                                         <min_children>10</min_children>
316                                         <max_children>50</max_children>
317                                         <min_spare_children>2</min_spare_children>
318                                         <max_spare_children>5</max_spare_children>
319                                 </unix_config>
320                                         
321                                 <app_settings>
322                                         <databases>
323                                                 <driver>Pg</driver>
324                                                 <database>
325                                                         <type>master</type>
326                                                         <weight>2</weight>
327                                                         <user>postgres</user>
328                                                         <host>127.0.0.1</host>
329                                                         <pw>postgres</pw>
330                                                         <db>demo-dev</db>
331                                                         <client_encoding>SQL_ASCII</client_encoding>
332                                                 </database>
333                                         </databases>
334                                 </app_settings>
335
336                         </open-ils.storage>
337
338                         <opensrf.settings>
339                                 <keepalive>1</keepalive>
340                                 <stateless>1</stateless>
341                                 <language>perl</language>
342                                 <implementation>OpenSRF::Application::Settings</implementation>
343                                 <max_requests>17</max_requests>
344                                 <unix_config>
345                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
346                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
347                                         <max_requests>1000</max_requests>
348                                         <unix_log>opensrf.settings_unix.log</unix_log>
349                                         <min_children>5</min_children>
350                                         <max_children>15</max_children>
351                                         <min_spare_children>3</min_spare_children>
352                                         <max_spare_children>5</max_spare_children>
353                                 </unix_config>
354                         </opensrf.settings>
355
356                 </apps>
357
358         </default>
359
360         <hosts>
361
362
363                 <!-- single host install, everything goes into one host section -->
364                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
365                         <activeapps>
366
367                                 <!-- opensrf builtin apps -->
368                                 <appname>opensrf.math</appname> 
369                                 <appname>opensrf.dbmath</appname> 
370                                 <appname>opensrf.settings</appname> 
371
372                                 <!-- openils apps -->
373                                 <appname>open-ils.cat</appname> 
374                                 <appname>open-ils.search</appname> 
375                                 <appname>open-ils.circ</appname> 
376                                 <appname>open-ils.actor</appname> 
377                                 <appname>open-ils.auth</appname> 
378                                 <appname>open-ils.storage</appname>  
379
380                         </activeapps>
381                 </myhost.mydomain.com> 
382
383         </hosts>
384
385 </opensrf>