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