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