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