]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/opensrf_core.xml.example
Patch from Dan Scott to move perl OpenSRF core bootstrapping settings into
[OpenSRF.git] / examples / opensrf_core.xml.example
1 <?xml version='1.0'?>
2
3 <config>
4
5   <opensrf> <!-- bootstrap config for OpenSRF apps -->
6
7                 <!--  the routers's name on the network -->
8                 <!-- do not change this -->
9       <router_name>router</router_name>
10                 
11       <routers> 
12                         <!-- 
13                                 list of router domains we should register with. 
14                                 We must at least have our default jabber domain in here
15                         -->
16          <router>localhost</router>
17       </routers>
18
19       <domains>
20       <!-- Our jabber domain, currently only one domain is supported -->
21          <domain>localhost</domain>
22       </domains>
23
24       <username>client</username>
25       <passwd>mypass</passwd>
26       <port>5222</port>
27
28                 <!-- log to a local file -->
29       <logfile>/openils/var/log/osrfsys.log</logfile>
30
31                 <!-- 
32                         Log to syslog. You can use this same layout for 
33                         defining the logging of all services in this file 
34                 -->
35
36                 <!--
37                 <logfile>syslog</logfile>
38                 <syslog>local2</syslog>
39                 <actlog>local1</actlog>
40                 -->
41
42                 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
43       <loglevel>3</loglevel>
44
45     <!-- config file for the services -->
46     <settings_config>/openils/conf/opensrf.xml</settings_config>
47   </opensrf>
48
49         <!-- Update this if you use ChopChop -->
50         <chopchop> <!-- Our jabber server -->
51                 <domain>localhost</domain>
52                 <port>5222</port>
53
54                 <!-- used when multiple servers need to communicate -->
55                 <s2sport>5269</s2sport>
56                 <secret>secret</secret>
57
58                 <listen_address>10.0.0.3</listen_address>
59                 <loglevel>3</loglevel>
60                 <logfile>/openils/var/log/osrfsys.log</logfile>
61         </chopchop>
62
63         <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
64         <gateway>
65
66         <!-- we consider ourselves to be the "originating" client for requests,
67             which means we define the log XID string for log traces -->
68         <client>true</client>
69
70                 <!--  the routers's name on the network -->
71                 <router_name>router</router_name>
72
73                 <!-- jabber domains to connect to (domain1, domain2, ...) -->
74                 <domains>
75                         <domain>localhost</domain>
76                 </domains>
77
78                 <!-- These are the services that the gateway will serve. 
79                         Any other requests will receive an HTTP_NOT_FOUND (404) 
80                         DO NOT put any services here that you don't want the internet to have access to
81                         -->
82                 <services>
83                         <service>opensrf.math</service> 
84                         <service>open-ils.cat</service> 
85                         <service>open-ils.search</service> 
86                         <service>open-ils.circ</service> 
87                         <service>open-ils.actor</service> 
88                         <service>open-ils.auth</service> 
89                 </services>
90
91
92                 <!-- jabber login info -->
93                 <username>mylogin</username>
94                 <passwd>mypassword</passwd>
95                 <port>5222</port>
96         
97                 <logfile>/openils/var/log/gateway.log</logfile>
98                 <loglevel>3</loglevel>
99
100         </gateway>
101
102
103         <!-- ======================================================================================== -->
104
105         <router>
106
107                 <!-- do not change -->
108                 <component>0</component>
109         
110                 <trusted_domains>
111                         <!-- Trusted servers are allowed to register apps with the router -->
112                         <server>localhost</server>
113                         <!-- Trusted clients are allowed to send packets through the router -->
114                         <client>localhost</client>
115                 </trusted_domains>
116         
117                 <transport>
118                         <!-- jabber server are we connecting to -->
119                         <server>localhost</server>
120                         <port>5222</port>
121
122                         <!-- if this is changed, all "router_name" settings 
123                 will need to be updated to match this setting -->
124                         <username>router</username>
125
126                         <password>mypassword</password>
127
128                         <!-- router's jabber resource --> 
129                         <!-- do not change this -->
130                         <resource>router</resource>
131
132                         <connect_timeout>10</connect_timeout>
133                         <max_reconnect_attempts>5</max_reconnect_attempts>
134                 </transport>
135         
136                 <logfile>/openils/var/log/router.log</logfile>
137                 <loglevel>3</loglevel>
138         
139         </router>
140
141         <!-- ======================================================================================== -->
142
143 </config>