]> git.evergreen-ils.org Git - OpenSRF.git/blob - examples/opensrf_core.xml.example
Use of const-correct osrfObjectGetKeyConst() from Scott McKellar:
[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     <domains>
19
20       <!-- Our jabber domain, currently only one domain is supported -->
21       <domain>localhost</domain>
22
23     </domains>
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     <!-- Log to syslog. You can use this same layout for 
32         defining the logging of all services in this file -->
33 <!--
34     <logfile>syslog</logfile>
35     <syslog>local2</syslog>
36     <actlog>local1</actlog>
37 -->
38
39     <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
40     <loglevel>3</loglevel>
41
42     <!-- config file for the services -->
43     <settings_config>/openils/conf/opensrf.xml</settings_config>
44
45   </opensrf>
46
47   <!-- Update this if you use ChopChop -->
48   <chopchop>
49
50     <!-- 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     <listen_address>10.0.0.3</listen_address>
58     <loglevel>3</loglevel>
59     <logfile>/openils/var/log/osrfsys.log</logfile>
60   </chopchop>
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     </services>
84
85     <!-- jabber login info -->
86     <username>mylogin</username>
87     <passwd>mypassword</passwd>
88     <port>5222</port>
89     <logfile>/openils/var/log/gateway.log</logfile>
90     <loglevel>3</loglevel>
91
92   </gateway>
93
94   <!-- ======================================================================================== -->
95
96   <router>
97
98     <!-- do not change -->
99     <component>0</component>
100
101     <trusted_domains>
102
103       <!-- Trusted servers are allowed to register apps with the router -->
104       <server>localhost</server>
105
106       <!-- Trusted clients are allowed to send packets through the 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       <!-- if this is changed, all "router_name" settings 
118                 will need to be updated to match this setting -->
119       <username>router</username>
120       <password>mypassword</password>
121
122       <!-- router's jabber resource -->
123       <!-- do not change this -->
124       <resource>router</resource>
125       <connect_timeout>10</connect_timeout>
126       <max_reconnect_attempts>5</max_reconnect_attempts>
127
128     </transport>
129     <logfile>/openils/var/log/router.log</logfile>
130     <loglevel>3</loglevel>
131
132   </router>
133
134   <!-- ======================================================================================== -->
135
136 </config>