attempting to update the documentation
[OpenSRF.git] / examples / opensrf_core.xml.example
1 <?xml version='1.0'?>
2
3 <config>
4
5         <opensrf> <!-- bootstrap config for the C 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>127.0.0.1</router>
17       </routers>
18
19       <domains>
20                         <!-- Our jabber domain, currenlty only one domain is supported -->
21          <domain>127.0.0.1</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    </opensrf>
45
46
47         <!-- Update this if you use ChopChop -->
48         <chopchop> <!-- Our jabber server -->
49                 <domain>127.0.0.1</domain>
50                 <port>5222</port>
51
52                 <!-- used when multiple servers need to communicate -->
53                 <s2sport>5269</s2sport>
54                 <secret>secret</secret>
55
56                 <listen_address>10.0.0.3</listen_address>
57                 <loglevel>3</loglevel>
58                 <logfile>/openils/var/log/osrfsys.log</logfile>
59         </chopchop>
60
61
62         <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
63         <gateway>
64
65                 <!--  the routers's name on the network -->
66                 <router_name>router</router_name>
67
68                 <!-- jabber domains to connect to (domain1, domain2, ...) -->
69                 <domains>
70                         <domain>127.0.0.1</domain>
71                 </domains>
72
73                 <!-- These are the services that the gateway will serve. 
74                         Any other requests will receive an HTTP_NOT_FOUND (404) 
75                         DO NOT put any services here that you don't want the internet to have access to
76                         -->
77                 <services>
78                         <service>opensrf.math</service> 
79                         <service>open-ils.cat</service> 
80                         <service>open-ils.search</service> 
81                         <service>open-ils.circ</service> 
82                         <service>open-ils.actor</service> 
83                         <service>open-ils.auth</service> 
84                 </services>
85
86
87                 <!-- jabber login info -->
88                 <username>mylogin</username>
89                 <passwd>mypassword</passwd>
90                 <port>5222</port>
91         
92                 <logfile>/openils/var/log/gateway.log</logfile>
93                 <loglevel>3</loglevel>
94
95         </gateway>
96
97         <rest_gateway>
98                 <router_name>router</router_name>
99                 <domains>
100                         <domain>127.0.0.1</domain>
101                 </domains>
102                 <username>mylogin</username>
103                 <passwd>mypassword</passwd>
104                 <port>5222</port>
105                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
106                 <logfile>/openils/var/log/gateway.log</logfile>
107                 <loglevel>3</loglevel>
108         </rest_gateway>
109
110         <!-- ======================================================================================== -->
111
112         <router>
113
114                 <!-- do not change -->
115                 <component>0</component>
116         
117                 <trusted_domains>
118                         <!-- Trusted servers are allowed to register apps with the router -->
119                         <server>127.0.0.1</server>
120                         <!-- Trusted clients are allowed to send packets through the router -->
121                         <client>127.0.0.1</client>
122                 </trusted_domains>
123         
124                 <transport>
125                         <!-- jabber server are we connecting to -->
126                         <server>127.0.0.1</server>
127                         <port>5222</port>
128
129                         <!-- do not change this -->
130                         <username>router</username>
131
132                         <password>mypassword</password>
133
134                         <!-- router's jabber resource --> 
135                         <!-- do not change this -->
136                         <resource>router</resource>
137
138                         <connect_timeout>10</connect_timeout>
139                         <max_reconnect_attempts>5</max_reconnect_attempts>
140                 </transport>
141         
142                 <logfile>/openils/var/log/router.log</logfile>
143                 <loglevel>3</loglevel>
144         
145         </router>
146
147         <!-- ======================================================================================== -->
148
149 </config>
150
151
152
153