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