]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/openils.xml.example
column tweaks
[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                                 </app_settings>
151
152                         </open-ils.search>
153
154
155                         <!-- server for accessing user info -->
156                         <open-ils.actor>
157                                 <keepalive>5</keepalive>
158                                 <stateless>1</stateless>
159                                 <language>perl</language>
160                                 <implementation>OpenILS::Application::Actor</implementation>
161                                 <max_requests>93</max_requests>
162
163                                 <unix_config>
164                                         <unix_sock>open-ils.actor_unix.sock</unix_sock>
165                                         <unix_pid>open-ils.actor_unix.pid</unix_pid>
166                                         <max_requests>1000</max_requests>
167                                         <unix_log>open-ils.actor_unix.log</unix_log>
168                                         <min_children>5</min_children>
169                                         <max_children>35</max_children>
170                                         <min_spare_children>2</min_spare_children>
171                                         <max_spare_children>5</max_spare_children>
172                                 </unix_config>
173
174                         </open-ils.actor>
175
176
177
178                         <!-- server for editing title, etc... -->
179                         <open-ils.cat>
180                                 <keepalive>5</keepalive>
181                                 <stateless>1</stateless>
182                                 <language>perl</language>
183                                 <implementation>OpenILS::Application::Cat</implementation>
184                                 <max_requests>199</max_requests>
185
186                                 <unix_config>
187                                         <unix_sock>open-ils.cat_unix.sock</unix_sock>
188                                         <unix_pid>open-ils.cat_unix.pid</unix_pid>
189                                         <max_requests>1000</max_requests>
190                                         <unix_log>open-ils.cat_unix.log</unix_log>
191                                         <min_children>5</min_children>
192                                         <max_children>25</max_children>
193                                         <min_spare_children>2</min_spare_children>
194                                         <max_spare_children>5</max_spare_children>
195                                 </unix_config>
196
197                                 <app_settings>
198                                         <marctemplates>
199                                                 <book>/path/to/templates/marc/book.xml</book>
200                                         </marctemplates>
201                                 </app_settings>
202
203
204                         </open-ils.cat>
205
206
207                         <opensrf.math>
208                                 <keepalive>3</keepalive>
209                                 <stateless>1</stateless>
210                                 <language>C</language>
211                                 <implementation>osrf_math.so</implementation>
212                                 <max_requests>97</max_requests>
213                                 <unix_config>
214                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
215                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
216                                         <max_requests>1000</max_requests>
217                                         <unix_log>opensrf.math_unix.log</unix_log>
218                                         <min_children>5</min_children>
219                                         <max_children>15</max_children>
220                                         <min_spare_children>2</min_spare_children>
221                                         <max_spare_children>5</max_spare_children>
222                                 </unix_config>
223                         </opensrf.math>
224                         
225                         <opensrf.dbmath> 
226                                 <keepalive>3</keepalive>
227                                 <stateless>1</stateless>
228                                 <language>C</language>
229                                 <implementation>osrf_dbmath.so</implementation>
230                                 <max_requests>99</max_requests>
231                                 <unix_config>
232                                         <max_requests>1000</max_requests>
233                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
234                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
235                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
236                                         <min_children>5</min_children>
237                                         <max_children>15</max_children>
238                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
239                                 </unix_config>
240                         </opensrf.dbmath>
241
242                         <!-- Circulation server -->
243                         <open-ils.circ> 
244                                 <keepalive>3</keepalive>
245                                 <stateless>1</stateless>
246                                 <language>perl</language>
247                                 <implementation>OpenILS::Application::Circ</implementation>
248                                 <max_requests>99</max_requests>
249                                 <unix_config>
250                                         <max_requests>1000</max_requests>
251                                         <unix_log>open-ils.circ_unix.log</unix_log>
252                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
253                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
254                                         <min_children>5</min_children>
255                                         <max_children>25</max_children>
256                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
257                                 </unix_config>
258
259                                 <app_settings>
260                                         <rules>
261                                                 <main>/openils/var/circ/circ_main.rules</main>
262                                                 <permission>/openils/var/circ/permit_circ.rules</permission>
263                                                 <duration>/openils/var/circ/calculate_duration.rules</duration>
264                                                 <recurring_fines>/openils/var/circ/calculate_recurring_fines.rules</recurring_fines>
265                                                 <max_fines>/openils/var/circ/calculate_max_fines.rules</max_fines>
266                                                 <permit_hold>/openils/var/circ/permit_hold.rules</permit_hold>
267                                                 <permit_renew>/openils/var/circ/permit_renew.rules</permit_renew>
268                                         </rules>
269                                 </app_settings>
270
271                         </open-ils.circ>
272
273                         <!-- Database storage server -->
274                         <open-ils.storage>
275                                 <keepalive>3</keepalive>
276                                 <stateless>1</stateless>
277                                 <language>perl</language>
278                                 <implementation>OpenILS::Application::Storage</implementation>
279                                 <unix_config>
280                                         <max_requests>1000</max_requests>
281                                         <unix_log>storage_unix.log</unix_log>
282                                         <unix_sock>storage_unix.sock</unix_sock>
283                                         <unix_pid>storage_unix.pid</unix_pid>
284                                         <max_requests>1000</max_requests>
285                                         <min_children>10</min_children>
286                                         <max_children>50</max_children>
287                                         <min_spare_children>2</min_spare_children>
288                                         <max_spare_children>5</max_spare_children>
289                                 </unix_config>
290                                         
291                                 <app_settings>
292                                         <databases>
293                                                 <driver>Pg</driver>
294                                                 <database>
295                                                         <type>master</type>
296                                                         <weight>2</weight>
297                                                         <user>postgres</user>
298                                                         <host>127.0.0.1</host>
299                                                         <pw>postgres</pw>
300                                                         <db>demo-dev</db>
301                                                         <client_encoding>SQL_ASCII</client_encoding>
302                                                 </database>
303                                         </databases>
304                                 </app_settings>
305
306                         </open-ils.storage>
307
308                         <opensrf.settings>
309                                 <keepalive>1</keepalive>
310                                 <stateless>1</stateless>
311                                 <language>perl</language>
312                                 <implementation>OpenSRF::Application::Settings</implementation>
313                                 <max_requests>17</max_requests>
314                                 <unix_config>
315                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
316                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
317                                         <max_requests>1000</max_requests>
318                                         <unix_log>opensrf.settings_unix.log</unix_log>
319                                         <min_children>5</min_children>
320                                         <max_children>15</max_children>
321                                         <min_spare_children>3</min_spare_children>
322                                         <max_spare_children>5</max_spare_children>
323                                 </unix_config>
324                         </opensrf.settings>
325
326                 </apps>
327
328         </default>
329
330         <hosts>
331
332
333                 <!-- single host install, everything goes into one host section -->
334                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
335                         <activeapps>
336
337                                 <!-- opensrf builtin apps -->
338                                 <appname>opensrf.math</appname> 
339                                 <appname>opensrf.dbmath</appname> 
340                                 <appname>opensrf.settings</appname> 
341
342                                 <!-- openils apps -->
343                                 <appname>open-ils.cat</appname> 
344                                 <appname>open-ils.search</appname> 
345                                 <appname>open-ils.circ</appname> 
346                                 <appname>open-ils.actor</appname> 
347                                 <appname>open-ils.auth</appname> 
348                                 <appname>open-ils.storage</appname>  
349
350                         </activeapps>
351                 </myhost.mydomain.com> 
352
353         </hosts>
354
355 </opensrf>