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