]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/opensrf_core.xml.example
changing default router log level from INFO to WARN
[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     <domain>localhost</domain>
69
70     <!-- These are the services that the gateway will serve. 
71     Any other requests will receive an HTTP_NOT_FOUND (404) 
72     DO NOT put any services here that you don't want the internet to have access to
73     -->
74     <services>
75       <service>opensrf.math</service>
76       <service>open-ils.cat</service>
77       <service>open-ils.search</service>
78       <service>open-ils.circ</service>
79       <service>open-ils.actor</service>
80       <service>open-ils.auth</service>
81       <service>open-ils.reporter</service>
82     </services>
83
84     <!-- jabber login info -->
85     <username>mylogin</username>
86     <passwd>mypassword</passwd>
87     <port>5222</port>
88     <logfile>/openils/var/log/gateway.log</logfile>
89     <loglevel>3</loglevel>
90
91   </gateway>
92
93   <!-- ======================================================================================== -->
94
95   <routers>
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>2</loglevel>
131     </router>
132
133   </routers>
134
135   <!-- ======================================================================================== -->
136
137 </config>