]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/opensrf_core.xml.example
pile of dojo layout fixes for 1.3 and to better ascimilate into the TT framework
[working/Evergreen.git] / Open-ILS / examples / opensrf_core.xml.example
1 <?xml version="1.0"?>
2 <!-- 
3 Example OpenSRF bootstrap configuration file for Evergreen
4 -->
5 <config>
6   <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
7   <opensrf>
8     <routers>
9
10       <!-- define the list of routers our services will register with -->
11       <router>
12         <!-- 
13           This is the public router.  On this router, we only register
14           applications which should be accessible to everyone on the OpenSRF
15           network
16         -->
17         <name>router</name>
18         <domain>public.localhost</domain>
19
20         <services>
21           <service>opensrf.math</service>
22           <service>open-ils.actor</service>
23           <service>open-ils.acq</service>
24           <service>open-ils.auth</service>
25           <service>open-ils.cat</service>
26           <service>open-ils.circ</service>
27           <service>open-ils.collections</service>
28           <service>open-ils.fielder</service>
29           <service>open-ils.pcrud</service>
30           <service>open-ils.permacrud</service>
31           <service>open-ils.reporter</service>
32           <service>open-ils.search</service>
33           <service>open-ils.supercat</service>
34           <service>open-ils.vandelay</service>
35         </services>
36       </router>
37
38       <router>
39         <!--
40           This is the private router.  All applications must register with 
41           this router, so no explicit <services> section is required
42         -->
43         <name>router</name>
44         <domain>private.localhost</domain>
45       </router>
46     </routers>
47
48     <!-- Our domain should match that of the private router -->
49     <domain>private.localhost</domain>
50     <username>opensrf</username>
51     <passwd>password</passwd>
52     <port>5222</port>
53
54     <!-- 
55       Name of the router used on our private domain.  
56       This should match one of the <name> of the private router above.
57      -->
58     <router_name>router</router_name>
59
60     <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
61     <!--
62       <logfile>syslog</logfile>
63       <syslog>local0</syslog>
64       <actlog>local1</actlog>
65      -->
66     <loglevel>3</loglevel>
67     <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
68   </opensrf>
69   <!-- 
70     The section between <gateway>...</gateway> is a standard OpenSRF C
71     stack configuration file
72   -->
73   <gateway>
74     <client>true</client>
75     <router_name>router</router_name>
76
77     <!-- The gateway connects to the public domain for security -->
78     <domain>public.localhost</domain>
79
80     <!-- This section will be soon deprecated for multi-domain mode... -->
81     <services>
82       <service>opensrf.math</service>
83       <service>opensrf.dbmath</service>
84       <service>open-ils.cat</service>
85       <service>open-ils.search</service>
86       <service>open-ils.circ</service>
87       <service>open-ils.actor</service>
88       <service>open-ils.auth</service>
89       <service>open-ils.collections</service>
90       <service>open-ils.reporter</service>
91     </services>
92
93     <!-- jabber login info -->
94     <username>opensrf</username>
95     <passwd>password</passwd>
96     <port>5222</port>
97     <loglevel>3</loglevel>
98     <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
99     <!--
100       <logfile>syslog</logfile>
101       <syslog>local6</syslog>
102       <actlog>local1</actlog>
103     -->
104   </gateway>
105   <!-- ======================================================================================== -->
106   <routers>
107     <router>
108       <!-- public router -->
109       <trusted_domains>
110         <!-- 
111           Allow private services to register with this router 
112           and public client to send requests to this router. 
113         -->
114         <server>private.localhost</server>
115
116         <!-- 
117           Also allow private clients to send to the router so it
118           can receive error messages
119         -->
120         <client>private.localhost</client>
121         <client>public.localhost</client>
122
123       </trusted_domains>
124       <transport>
125         <server>public.localhost</server>
126         <port>5222</port>
127         <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
128         <username>router</username>
129         <password>password</password>
130         <resource>router</resource>
131         <connect_timeout>10</connect_timeout>
132         <max_reconnect_attempts>5</max_reconnect_attempts>
133       </transport>
134       <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
135       <!--
136         <logfile>syslog</logfile>
137         <syslog>local2</syslog>
138       -->
139       <loglevel>3</loglevel>
140     </router>
141     <router>
142       <!-- private router -->
143       <trusted_domains>
144         <server>private.localhost</server>
145         <!-- 
146           Only clients on the private domain can send requests to this router
147          -->
148         <client>private.localhost</client>
149       </trusted_domains>
150       <transport>
151         <server>private.localhost</server>
152         <port>5222</port>
153         <username>router</username>
154         <password>password</password>
155         <resource>router</resource>
156         <connect_timeout>10</connect_timeout>
157         <max_reconnect_attempts>5</max_reconnect_attempts>
158       </transport>
159       <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
160       <!--
161         <logfile>syslog</logfile>
162         <syslog>local2</syslog>
163       -->
164       <loglevel>3</loglevel>
165     </router>
166   </routers>
167   <!-- ======================================================================================== -->
168 </config>