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