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