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