]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/opensrf_core.xml.example
Whitespace consistency in XML files (plus modelines).
[Evergreen.git] / Open-ILS / 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 this -->
12     <router_name>router</router_name>
13     <routers>
14       <router>localhost</router>
15     </routers>
16
17     <!-- Our jabber domain -->
18     <domain>localhost</domain>
19     <username>client</username>
20     <passwd>mypass</passwd>
21     <port>5222</port>
22
23     <!-- log to a local file -->
24     <logfile>/openils/var/log/osrfsys.log</logfile>
25
26     <!-- Log to syslog. You can use this same layout for 
27     defining the logging of all services in this file -->
28     <!--
29     <logfile>syslog</logfile>
30     <syslog>local2</syslog>
31     <actlog>local1</actlog>
32     -->
33
34     <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
35     <loglevel>3</loglevel>
36
37     <!-- config file for the services -->
38     <settings_config>/openils/conf/opensrf.xml</settings_config>
39
40   </opensrf>
41
42   <!-- Update this if you use ChopChop -->
43   <chopchop>
44
45     <!-- Our jabber server -->
46     <domain>localhost</domain>
47     <port>5222</port>
48
49     <!-- used when multiple servers need to communicate -->
50     <s2sport>5269</s2sport>
51     <secret>secret</secret>
52     <listen_address>10.0.0.3</listen_address>
53     <loglevel>3</loglevel>
54     <logfile>/openils/var/log/osrfsys.log</logfile>
55   </chopchop>
56
57   <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
58   <gateway>
59
60     <!-- we consider ourselves to be the "originating" client for requests,
61     which means we define the log XID string for log traces -->
62     <client>true</client>
63
64     <!--  the routers's name on the network -->
65     <router_name>router</router_name>
66
67     <!-- jabber domains to connect to (domain1, domain2, ...) -->
68     <domains>
69       <domain>localhost</domain>
70     </domains>
71
72     <!-- These are the services that the gateway will serve. 
73     Any other requests will receive an HTTP_NOT_FOUND (404) 
74     DO NOT put any services here that you don't want the internet to have access to
75     -->
76     <services>
77       <service>opensrf.math</service>
78       <service>open-ils.cat</service>
79       <service>open-ils.search</service>
80       <service>open-ils.circ</service>
81       <service>open-ils.actor</service>
82       <service>open-ils.auth</service>
83       <service>open-ils.reporter</service>
84     </services>
85
86     <!-- jabber login info -->
87     <username>mylogin</username>
88     <passwd>mypassword</passwd>
89     <port>5222</port>
90     <logfile>/openils/var/log/gateway.log</logfile>
91     <loglevel>3</loglevel>
92
93   </gateway>
94
95   <!-- ======================================================================================== -->
96
97   <routers>
98     <router>
99
100       <!-- do not change -->
101       <component>0</component>
102
103       <trusted_domains>
104
105         <!-- Trusted servers are allowed to register apps with the router -->
106         <server>localhost</server>
107
108         <!-- Trusted clients are allowed to send packets through the router -->
109         <client>localhost</client>
110
111       </trusted_domains>
112
113       <transport>
114
115         <!-- jabber server are we connecting to -->
116         <server>localhost</server>
117         <port>5222</port>
118
119         <!-- if this is changed, all "router_name" settings 
120         will need to be updated to match this setting -->
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     </router>
134
135   </routers>
136
137   <!-- ======================================================================================== -->
138
139 </config>