]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/opensrf_core.xml.example
5222d67ed1d5b95725c17bd40421a9742dd98129
[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>localhost</router>
17       </routers>
18
19       <domains>
20                         <!-- Our jabber domain, currenlty 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    </opensrf>
45
46
47         <!-- Update this if you use ChopChop -->
48         <chopchop> <!-- Our jabber server -->
49                 <domain>localhost</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         <!-- we consider ourselves to be the "originating" client for requests,
66             which means we define the log XID string for log traces -->
67         <client>true</client>
68
69                 <!--  the routers's name on the network -->
70                 <router_name>router</router_name>
71
72                 <!-- jabber domains to connect to (domain1, domain2, ...) -->
73                 <domains>
74                         <domain>localhost</domain>
75                 </domains>
76
77                 <!-- These are the services that the gateway will serve. 
78                         Any other requests will receive an HTTP_NOT_FOUND (404) 
79                         DO NOT put any services here that you don't want the internet to have access to
80                         -->
81                 <services>
82                         <service>opensrf.math</service> 
83                         <service>open-ils.cat</service> 
84                         <service>open-ils.search</service> 
85                         <service>open-ils.circ</service> 
86                         <service>open-ils.actor</service> 
87                         <service>open-ils.auth</service> 
88                 </services>
89
90
91                 <!-- jabber login info -->
92                 <username>mylogin</username>
93                 <passwd>mypassword</passwd>
94                 <port>5222</port>
95         
96                 <logfile>/openils/var/log/gateway.log</logfile>
97                 <loglevel>3</loglevel>
98
99         </gateway>
100
101         <rest_gateway>
102                 <router_name>router</router_name>
103                 <domains>
104                         <domain>localhost</domain>
105                 </domains>
106                 <username>mylogin</username>
107                 <passwd>mypassword</passwd>
108                 <port>5222</port>
109                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
110                 <logfile>/openils/var/log/gateway.log</logfile>
111                 <loglevel>3</loglevel>
112         </rest_gateway>
113
114         <!-- ======================================================================================== -->
115
116         <router>
117
118                 <!-- do not change -->
119                 <component>0</component>
120         
121                 <trusted_domains>
122                         <!-- Trusted servers are allowed to register apps with the router -->
123                         <server>localhost</server>
124                         <!-- Trusted clients are allowed to send packets through the router -->
125                         <client>localhost</client>
126                 </trusted_domains>
127         
128                 <transport>
129                         <!-- jabber server are we connecting to -->
130                         <server>localhost</server>
131                         <port>5222</port>
132
133                         <!-- do not change this -->
134                         <username>router</username>
135
136                         <password>mypassword</password>
137
138                         <!-- router's jabber resource --> 
139                         <!-- do not change this -->
140                         <resource>router</resource>
141
142                         <connect_timeout>10</connect_timeout>
143                         <max_reconnect_attempts>5</max_reconnect_attempts>
144                 </transport>
145         
146                 <logfile>/openils/var/log/router.log</logfile>
147                 <loglevel>3</loglevel>
148         
149         </router>
150
151         <!-- ======================================================================================== -->
152
153 </config>
154
155
156
157