changed port
[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>/path/to/log</log>
16                         <sock>/path/to/sock</sock>
17                         <pid>/path/to/pid</pid>
18
19                         <!-- xsl stylesheets go here -->
20                         <xsl>/path/to/xsl</xsl>
21                         <conf>/path/to/conf</conf>
22                 </dirs>
23
24                 <server_type>prefork</server_type>
25
26                 <!-- script for exception strings -->
27                 <ex_script>/path/to/templates/strings/ex.ttk</ex_script>
28                 <perm_script>/path/to/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                                 <implementation>OpenSRF::Application::Persist</implementation>
72                                 <max_requests>97</max_requests>
73                                 <unix_config>
74                                         <unix_sock>opensrf.persist_unix.sock</unix_sock>
75                                         <unix_pid>opensrf.persist_unix.pid</unix_pid>
76                                         <max_requests>1000</max_requests>
77                                         <unix_log>opensrf.persist_unix.log</unix_log>
78                                         <min_children>5</min_children>
79                                         <max_children>25</max_children>
80                                         <min_spare_children>2</min_spare_children>
81                                         <max_spare_children>5</max_spare_children>
82                                 </unix_config>
83
84                                 <app_settings>
85                                         <dbfile>/path/to/dbfile/persist.db</dbfile>
86                                 </app_settings>
87
88                         </opensrf.persist>
89
90                         <!-- Authentication server -->
91                         <open-ils.auth>
92                                 <keepalive>5</keepalive>
93                                 <stateless>1</stateless>
94                                 <implementation>OpenILS::Application::Auth</implementation>
95                                 <max_requests>93</max_requests>
96
97                                 <unix_config>
98                                         <unix_sock>open-ils.auth_unix.sock</unix_sock>
99                                         <unix_pid>open-ils.auth_unix.pid</unix_pid>
100                                         <max_requests>1000</max_requests>
101                                         <unix_log>open-ils.auth_unix.log</unix_log>
102                                         <min_children>5</min_children>
103                                         <max_children>35</max_children>
104                                         <min_spare_children>2</min_spare_children>
105                                         <max_spare_children>5</max_spare_children>
106                                 </unix_config>
107
108                                 <app_settings>
109                                         <!-- if true, user sessions will be persisted via the OpenSRF persist 
110                                                         server in addition to memcache -->
111                                         <persist_users>0</persist_users>
112                                 </app_settings>
113
114                         </open-ils.auth>
115
116
117                         <!-- Generic search server -->
118                         <open-ils.search>
119                                 <keepalive>5</keepalive>
120                                 <stateless>1</stateless>
121                                 <implementation>OpenILS::Application::Search</implementation>
122                                 <max_requests>93</max_requests>
123
124                                 <unix_config>
125                                         <unix_sock>open-ils.search_unix.sock</unix_sock>
126                                         <unix_pid>open-ils.search_unix.pid</unix_pid>
127                                         <max_requests>1000</max_requests>
128                                         <unix_log>open-ils.search_unix.log</unix_log>
129                                         <min_children>5</min_children>
130                                         <max_children>35</max_children>
131                                         <min_spare_children>2</min_spare_children>
132                                         <max_spare_children>5</max_spare_children>
133                                 </unix_config>
134
135                                 <app_settings>
136                                         <memcache>127.0.0.1:10101</memcache>
137                                         <max_cache_time>3600</max_cache_time>
138                                         <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
139                                 </app_settings>
140
141                         </open-ils.search>
142
143
144                         <!-- server for accessing user info -->
145                         <open-ils.actor>
146                                 <keepalive>5</keepalive>
147                                 <stateless>1</stateless>
148                                 <implementation>OpenILS::Application::Actor</implementation>
149                                 <max_requests>93</max_requests>
150
151                                 <unix_config>
152                                         <unix_sock>open-ils.actor_unix.sock</unix_sock>
153                                         <unix_pid>open-ils.actor_unix.pid</unix_pid>
154                                         <max_requests>1000</max_requests>
155                                         <unix_log>open-ils.actor_unix.log</unix_log>
156                                         <min_children>5</min_children>
157                                         <max_children>35</max_children>
158                                         <min_spare_children>2</min_spare_children>
159                                         <max_spare_children>5</max_spare_children>
160                                 </unix_config>
161
162                         </open-ils.actor>
163
164
165
166                         <!-- server for editing title, etc... -->
167                         <open-ils.cat>
168                                 <keepalive>5</keepalive>
169                                 <stateless>1</stateless>
170                                 <implementation>OpenILS::Application::Cat</implementation>
171                                 <max_requests>199</max_requests>
172
173                                 <unix_config>
174                                         <unix_sock>open-ils.cat_unix.sock</unix_sock>
175                                         <unix_pid>open-ils.cat_unix.pid</unix_pid>
176                                         <max_requests>1000</max_requests>
177                                         <unix_log>open-ils.cat_unix.log</unix_log>
178                                         <min_children>5</min_children>
179                                         <max_children>25</max_children>
180                                         <min_spare_children>2</min_spare_children>
181                                         <max_spare_children>5</max_spare_children>
182                                 </unix_config>
183
184                                 <app_settings>
185                                         <marctemplates>
186                                                 <book>/path/to/templates/marc/book.xml</book>
187                                         </marctemplates>
188                                 </app_settings>
189
190
191                         </open-ils.cat>
192
193
194                         <opensrf.math>
195                                 <keepalive>3</keepalive>
196                                 <stateless>1</stateless>
197                                 <implementation>OpenSRF::Application::Demo::Math</implementation>
198                                 <max_requests>97</max_requests>
199                                 <unix_config>
200                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
201                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
202                                         <max_requests>1000</max_requests>
203                                         <unix_log>opensrf.math_unix.log</unix_log>
204                                         <min_children>5</min_children>
205                                         <max_children>15</max_children>
206                                         <min_spare_children>2</min_spare_children>
207                                         <max_spare_children>5</max_spare_children>
208                                 </unix_config>
209                         </opensrf.math>
210                         
211                         <opensrf.dbmath> 
212                                 <keepalive>3</keepalive>
213                                 <stateless>1</stateless>
214                                 <implementation>OpenSRF::Application::Demo::MathDB</implementation>
215                                 <max_requests>99</max_requests>
216                                 <unix_config>
217                                         <max_requests>1000</max_requests>
218                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
219                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
220                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
221                                         <min_children>5</min_children>
222                                         <max_children>15</max_children>
223                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
224                                 </unix_config>
225                         </opensrf.dbmath>
226
227                         <!-- Circulation server -->
228                         <open-ils.circ> 
229                                 <keepalive>3</keepalive>
230                                 <stateless>1</stateless>
231                                 <implementation>OpenILS::Application::Circ</implementation>
232                                 <max_requests>99</max_requests>
233                                 <unix_config>
234                                         <max_requests>1000</max_requests>
235                                         <unix_log>open-ils.circ_unix.log</unix_log>
236                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
237                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
238                                         <min_children>5</min_children>
239                                         <max_children>25</max_children>
240                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
241                                 </unix_config>
242
243                                 <app_settings>
244                                         <rules>
245                                                 <main>/path/to/circ/circ_main.rules</main>
246                                                 <permission>/path/to/circ/permit_circ.rules</permission>
247                                                 <duration>/path/to/circ/calculate_duration.rules</duration>
248                                                 <recurring_fines>/path/to/circ/calculate_recurring_fines.rules</recurring_fines>
249                                                 <max_fines>/path/to/circ/calculate_max_fines.rules</max_fines>
250                                                 <permit_hold>/path/to/circ/permit_hold.rules</permit_hold>
251                                                 <permit_renew>/path/to/circ/permit_renew.rules</permit_renew>
252                                         </rules>
253                                 </app_settings>
254
255                         </open-ils.circ>
256
257                         <!-- Database storage server -->
258                         <open-ils.storage>
259                                 <keepalive>3</keepalive>
260                                 <stateless>1</stateless>
261                                 <implementation>OpenILS::Application::Storage</implementation>
262                                 <unix_config>
263                                         <max_requests>1000</max_requests>
264                                         <unix_log>storage_unix.log</unix_log>
265                                         <unix_sock>storage_unix.sock</unix_sock>
266                                         <unix_pid>storage_unix.pid</unix_pid>
267                                         <max_requests>1000</max_requests>
268                                         <min_children>10</min_children>
269                                         <max_children>50</max_children>
270                                         <min_spare_children>2</min_spare_children>
271                                         <max_spare_children>5</max_spare_children>
272                                 </unix_config>
273                                         
274                                 <app_settings>
275                                         <databases>
276                                                 <driver>Pg</driver>
277                                                 <database>
278                                                         <type>master</type>
279                                                         <weight>2</weight>
280                                                         <user>postgres</user>
281                                                         <host>127.0.0.1</host>
282                                                         <pw>postgres</pw>
283                                                         <db>demo-dev</db>
284                                                         <client_encoding>SQL_ASCII</client_encoding>
285                                                 </database>
286                                         </databases>
287                                 </app_settings>
288
289                         </open-ils.storage>
290
291                         <opensrf.settings>
292                                 <keepalive>1</keepalive>
293                                 <stateless>0</stateless>
294                                 <implementation>OpenSRF::Application::Settings</implementation>
295                                 <max_requests>17</max_requests>
296                                 <unix_config>
297                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
298                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
299                                         <max_requests>1000</max_requests>
300                                         <unix_log>opensrf.settings_unix.log</unix_log>
301                                         <min_children>5</min_children>
302                                         <max_children>15</max_children>
303                                         <min_spare_children>3</min_spare_children>
304                                         <max_spare_children>5</max_spare_children>
305                                 </unix_config>
306                         </opensrf.settings>
307
308                 </apps>
309
310         </default>
311
312         <hosts>
313
314
315                 <!-- single host install, everything goes into one host section -->
316                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
317                         <activeapps>
318
319                                 <!-- opensrf builtin apps -->
320                                 <appname>opensrf.math</appname> 
321                                 <appname>opensrf.dbmath</appname> 
322                                 <appname>opensrf.settings</appname> 
323
324                                 <!-- openils apps -->
325                                 <appname>open-ils.cat</appname> 
326                                 <appname>open-ils.search</appname> 
327                                 <appname>open-ils.circ</appname> 
328                                 <appname>open-ils.actor</appname> 
329                                 <appname>open-ils.auth</appname> 
330                                 <appname>open-ils.storage</appname>  
331
332                         </activeapps>
333                 </myhost.mydomain.com> 
334
335         </hosts>
336
337 </opensrf>