]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/openils.xml
2928074b8ce4fad6693377fb4e4ccb96ac4d1713
[working/Evergreen.git] / Open-ILS / examples / openils.xml
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:1010</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                         </open-ils.cat>
185
186
187                         <opensrf.math>
188                                 <keepalive>3</keepalive>
189                                 <stateless>1</stateless>
190                                 <implementation>OpenSRF::Application::Demo::Math</implementation>
191                                 <max_requests>97</max_requests>
192                                 <unix_config>
193                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
194                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
195                                         <max_requests>1000</max_requests>
196                                         <unix_log>opensrf.math_unix.log</unix_log>
197                                         <min_children>5</min_children>
198                                         <max_children>15</max_children>
199                                         <min_spare_children>2</min_spare_children>
200                                         <max_spare_children>5</max_spare_children>
201                                 </unix_config>
202                         </opensrf.math>
203                         
204                         <opensrf.dbmath> 
205                                 <keepalive>3</keepalive>
206                                 <stateless>1</stateless>
207                                 <implementation>OpenSRF::Application::Demo::MathDB</implementation>
208                                 <max_requests>99</max_requests>
209                                 <unix_config>
210                                         <max_requests>1000</max_requests>
211                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
212                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
213                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
214                                         <min_children>5</min_children>
215                                         <max_children>15</max_children>
216                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
217                                 </unix_config>
218                         </opensrf.dbmath>
219
220                         <!-- Circulation server -->
221                         <open-ils.circ> 
222                                 <keepalive>3</keepalive>
223                                 <stateless>1</stateless>
224                                 <implementation>OpenILS::Application::Circ</implementation>
225                                 <max_requests>99</max_requests>
226                                 <unix_config>
227                                         <max_requests>1000</max_requests>
228                                         <unix_log>open-ils.circ_unix.log</unix_log>
229                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
230                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
231                                         <min_children>5</min_children>
232                                         <max_children>25</max_children>
233                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
234                                 </unix_config>
235
236                                 <app_settings>
237                                         <rules>
238                                                 <main>/path/to/circ/circ_main.rules</main>
239                                                 <permission>/path/to/circ/permit_circ.rules</permission>
240                                                 <duration>/path/to/circ/calculate_duration.rules</duration>
241                                                 <recurring_fines>/path/to/circ/calculate_recurring_fines.rules</recurring_fines>
242                                                 <max_fines>/path/to/circ/calculate_max_fines.rules</max_fines>
243                                                 <permit_hold>/path/to/circ/permit_hold.rules</permit_hold>
244                                                 <permit_renew>/path/to/circ/permit_renew.rules</permit_renew>
245                                         </rules>
246                                 </app_settings>
247
248                         </open-ils.circ>
249
250                         <!-- Database storage server -->
251                         <open-ils.storage>
252                                 <keepalive>3</keepalive>
253                                 <stateless>1</stateless>
254                                 <implementation>OpenILS::Application::Storage</implementation>
255                                 <unix_config>
256                                         <max_requests>1000</max_requests>
257                                         <unix_log>storage_unix.log</unix_log>
258                                         <unix_sock>storage_unix.sock</unix_sock>
259                                         <unix_pid>storage_unix.pid</unix_pid>
260                                         <max_requests>1000</max_requests>
261                                         <min_children>10</min_children>
262                                         <max_children>50</max_children>
263                                         <min_spare_children>2</min_spare_children>
264                                         <max_spare_children>5</max_spare_children>
265                                 </unix_config>
266                                         
267                                 <app_settings>
268                                         <databases>
269                                                 <driver>Pg</driver>
270                                                 <database>
271                                                         <type>master</type>
272                                                         <weight>2</weight>
273                                                         <user>postgres</user>
274                                                         <host>127.0.0.1</host>
275                                                         <pw>postgres</pw>
276                                                         <db>demo-dev</db>
277                                                         <client_encoding>SQL_ASCII</client_encoding>
278                                                 </database>
279                                         </databases>
280                                 </app_settings>
281
282                         </open-ils.storage>
283
284                         <opensrf.settings>
285                                 <keepalive>1</keepalive>
286                                 <stateless>0</stateless>
287                                 <implementation>OpenSRF::Application::Settings</implementation>
288                                 <max_requests>17</max_requests>
289                                 <unix_config>
290                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
291                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
292                                         <max_requests>1000</max_requests>
293                                         <unix_log>opensrf.settings_unix.log</unix_log>
294                                         <min_children>5</min_children>
295                                         <max_children>15</max_children>
296                                         <min_spare_children>3</min_spare_children>
297                                         <max_spare_children>5</max_spare_children>
298                                 </unix_config>
299                         </opensrf.settings>
300
301                 </apps>
302
303         </default>
304
305         <hosts>
306
307
308                 <!-- single host install, everything goes into one host section -->
309                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
310                         <activeapps>
311
312                                 <!-- opensrf builtin apps -->
313                                 <appname>opensrf.persist</appname> 
314                                 <appname>opensrf.math</appname> 
315                                 <appname>opensrf.dbmath</appname> 
316                                 <appname>opensrf.settings</appname> 
317
318                                 <!-- openils apps -->
319                                 <appname>open-ils.cat</appname> 
320                                 <appname>open-ils.search</appname> 
321                                 <appname>open-ils.circ</appname> 
322                                 <appname>open-ils.actor</appname> 
323                                 <appname>open-ils.auth</appname> 
324                                 <appname>open-ils.storage</appname>  
325
326                         </activeapps>
327                 </myhost.mydomain.com> 
328
329         </hosts>
330
331 </opensrf>