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