]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/openils.xml.example
config adjustment for new JS backend scripts and libs
[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                                         </default_timeout>
123
124                                 </app_settings>
125
126                         </open-ils.auth>
127
128
129                         <!-- Generic search server -->
130                         <open-ils.search>
131                                 <keepalive>5</keepalive>
132                                 <stateless>1</stateless>
133                                 <language>perl</language>
134                                 <implementation>OpenILS::Application::Search</implementation>
135                                 <max_requests>93</max_requests>
136
137                                 <unix_config>
138                                         <unix_sock>open-ils.search_unix.sock</unix_sock>
139                                         <unix_pid>open-ils.search_unix.pid</unix_pid>
140                                         <max_requests>1000</max_requests>
141                                         <unix_log>open-ils.search_unix.log</unix_log>
142                                         <min_children>5</min_children>
143                                         <max_children>35</max_children>
144                                         <min_spare_children>2</min_spare_children>
145                                         <max_spare_children>5</max_spare_children>
146                                 </unix_config>
147
148                                 <app_settings>
149                                         <memcache>127.0.0.1:10101</memcache>
150                                         <max_cache_time>3600</max_cache_time>
151                                         <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
152                                         <added_content>
153                                                 <!-- 
154                                                         Example added content handler.  If this is not defined, the default
155                                                         content handler is used, which returns empty sets for all methods       
156                                                 -->
157                                                 <!--
158                                                 <implementation>Evergreen::Application::Search::AddedContent::ContentCafe</implementation>
159                                                 <host>MY_CONTENT_HOST</host>
160                                                 <username>MY_CONTENT_USERNAME</username>
161                                                 <password>MY_CONTENT_PASSWORD</password>
162                                                 -->
163                                         </added_content>
164
165                                 </app_settings>
166
167                         </open-ils.search>
168
169
170                         <!-- server for accessing user info -->
171                         <open-ils.actor>
172                                 <keepalive>5</keepalive>
173                                 <stateless>1</stateless>
174                                 <language>perl</language>
175                                 <implementation>OpenILS::Application::Actor</implementation>
176                                 <max_requests>93</max_requests>
177
178                                 <unix_config>
179                                         <unix_sock>open-ils.actor_unix.sock</unix_sock>
180                                         <unix_pid>open-ils.actor_unix.pid</unix_pid>
181                                         <max_requests>1000</max_requests>
182                                         <unix_log>open-ils.actor_unix.log</unix_log>
183                                         <min_children>5</min_children>
184                                         <max_children>35</max_children>
185                                         <min_spare_children>2</min_spare_children>
186                                         <max_spare_children>5</max_spare_children>
187                                 </unix_config>
188
189                         </open-ils.actor>
190
191
192
193                         <!-- server for editing title, etc... -->
194                         <open-ils.cat>
195                                 <keepalive>5</keepalive>
196                                 <stateless>1</stateless>
197                                 <language>perl</language>
198                                 <implementation>OpenILS::Application::Cat</implementation>
199                                 <max_requests>199</max_requests>
200
201                                 <unix_config>
202                                         <unix_sock>open-ils.cat_unix.sock</unix_sock>
203                                         <unix_pid>open-ils.cat_unix.pid</unix_pid>
204                                         <max_requests>1000</max_requests>
205                                         <unix_log>open-ils.cat_unix.log</unix_log>
206                                         <min_children>5</min_children>
207                                         <max_children>25</max_children>
208                                         <min_spare_children>2</min_spare_children>
209                                         <max_spare_children>5</max_spare_children>
210                                 </unix_config>
211
212                                 <app_settings>
213                                         <marctemplates>
214                                                 <book>/path/to/templates/marc/book.xml</book>
215                                         </marctemplates>
216                                 </app_settings>
217
218
219                         </open-ils.cat>
220
221
222                         <opensrf.math>
223                                 <keepalive>3</keepalive>
224                                 <stateless>1</stateless>
225                                 <language>C</language>
226                                 <implementation>osrf_math.so</implementation>
227                                 <max_requests>97</max_requests>
228                                 <unix_config>
229                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
230                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
231                                         <max_requests>1000</max_requests>
232                                         <unix_log>opensrf.math_unix.log</unix_log>
233                                         <min_children>5</min_children>
234                                         <max_children>15</max_children>
235                                         <min_spare_children>2</min_spare_children>
236                                         <max_spare_children>5</max_spare_children>
237                                 </unix_config>
238                         </opensrf.math>
239                         
240                         <opensrf.dbmath> 
241                                 <keepalive>3</keepalive>
242                                 <stateless>1</stateless>
243                                 <language>C</language>
244                                 <implementation>osrf_dbmath.so</implementation>
245                                 <max_requests>99</max_requests>
246                                 <unix_config>
247                                         <max_requests>1000</max_requests>
248                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
249                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
250                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
251                                         <min_children>5</min_children>
252                                         <max_children>15</max_children>
253                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
254                                 </unix_config>
255                         </opensrf.dbmath>
256
257                         <!-- Circulation server -->
258                         <open-ils.circ> 
259                                 <keepalive>3</keepalive>
260                                 <stateless>1</stateless>
261                                 <language>perl</language>
262                                 <implementation>OpenILS::Application::Circ</implementation>
263                                 <max_requests>99</max_requests>
264                                 <unix_config>
265                                         <max_requests>1000</max_requests>
266                                         <unix_log>open-ils.circ_unix.log</unix_log>
267                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
268                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
269                                         <min_children>5</min_children>
270                                         <max_children>25</max_children>
271                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
272                                 </unix_config>
273
274                                 <app_settings>
275                                         <rules>
276                                                 <permission>permit_circ.rules</permission>
277                                                 <duration>calculate_duration.rules</duration>
278                                                 <recurring_fines>calculate_recurring_fines.rules</recurring_fines>
279                                                 <max_fines>calculate_max_fines.rules</max_fines>
280                                                 <permit_hold>permit_hold.rules</permit_hold>
281                                                 <permit_renew>permit_renew.rules</permit_renew>
282                                         </rules>
283                                 </app_settings>
284
285                         </open-ils.circ>
286
287                         <!-- Database storage server -->
288                         <open-ils.storage>
289                                 <keepalive>3</keepalive>
290                                 <stateless>1</stateless>
291                                 <language>perl</language>
292                                 <implementation>OpenILS::Application::Storage</implementation>
293                                 <unix_config>
294                                         <max_requests>1000</max_requests>
295                                         <unix_log>storage_unix.log</unix_log>
296                                         <unix_sock>storage_unix.sock</unix_sock>
297                                         <unix_pid>storage_unix.pid</unix_pid>
298                                         <max_requests>1000</max_requests>
299                                         <min_children>10</min_children>
300                                         <max_children>50</max_children>
301                                         <min_spare_children>2</min_spare_children>
302                                         <max_spare_children>5</max_spare_children>
303                                 </unix_config>
304                                         
305                                 <app_settings>
306                                         <databases>
307                                                 <driver>Pg</driver>
308                                                 <database>
309                                                         <type>master</type>
310                                                         <weight>2</weight>
311                                                         <user>postgres</user>
312                                                         <host>127.0.0.1</host>
313                                                         <pw>postgres</pw>
314                                                         <db>demo-dev</db>
315                                                         <client_encoding>SQL_ASCII</client_encoding>
316                                                 </database>
317                                         </databases>
318                                 </app_settings>
319
320                         </open-ils.storage>
321
322                         <opensrf.settings>
323                                 <keepalive>1</keepalive>
324                                 <stateless>1</stateless>
325                                 <language>perl</language>
326                                 <implementation>OpenSRF::Application::Settings</implementation>
327                                 <max_requests>17</max_requests>
328                                 <unix_config>
329                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
330                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
331                                         <max_requests>1000</max_requests>
332                                         <unix_log>opensrf.settings_unix.log</unix_log>
333                                         <min_children>5</min_children>
334                                         <max_children>15</max_children>
335                                         <min_spare_children>3</min_spare_children>
336                                         <max_spare_children>5</max_spare_children>
337                                 </unix_config>
338                         </opensrf.settings>
339
340                 </apps>
341
342         </default>
343
344         <hosts>
345
346
347                 <!-- single host install, everything goes into one host section -->
348                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
349                         <activeapps>
350
351                                 <!-- opensrf builtin apps -->
352                                 <appname>opensrf.math</appname> 
353                                 <appname>opensrf.dbmath</appname> 
354                                 <appname>opensrf.settings</appname> 
355
356                                 <!-- openils apps -->
357                                 <appname>open-ils.cat</appname> 
358                                 <appname>open-ils.search</appname> 
359                                 <appname>open-ils.circ</appname> 
360                                 <appname>open-ils.actor</appname> 
361                                 <appname>open-ils.auth</appname> 
362                                 <appname>open-ils.storage</appname>  
363
364                         </activeapps>
365                 </myhost.mydomain.com> 
366
367         </hosts>
368
369 </opensrf>