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