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