3 Example OpenSRF bootstrap configuration file for Evergreen
6 <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
10 <!-- define the list of routers our services will register with -->
13 This is the public router. On this router, we only register
14 applications which should be accessible to everyone on the OpenSRF
18 <domain>public.localhost</domain>
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>
40 This is the private router. All applications must register with
41 this router, so no explicit <services> section is required
44 <domain>private.localhost</domain>
48 <!-- Our domain should match that of the private router -->
49 <domain>private.localhost</domain>
50 <username>opensrf</username>
51 <passwd>password</passwd>
55 Name of the router used on our private domain.
56 This should match one of the <name> of the private router above.
58 <router_name>router</router_name>
60 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
62 <logfile>syslog</logfile>
63 <syslog>local0</syslog>
64 <actlog>local1</actlog>
66 <loglevel>3</loglevel>
67 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
70 The section between <gateway>...</gateway> is a standard OpenSRF C
71 stack configuration file
75 <router_name>router</router_name>
77 <!-- The gateway connects to the public domain for security -->
78 <domain>public.localhost</domain>
80 <!-- This section will be soon deprecated for multi-domain mode... -->
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>
93 <!-- jabber login info -->
94 <username>opensrf</username>
95 <passwd>password</passwd>
97 <loglevel>3</loglevel>
98 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
100 <logfile>syslog</logfile>
101 <syslog>local6</syslog>
102 <actlog>local1</actlog>
105 <!-- ======================================================================================== -->
108 <!-- public router -->
111 Allow private services to register with this router
112 and public client to send requests to this router.
114 <server>private.localhost</server>
117 Also allow private clients to send to the router so it
118 can receive error messages
120 <client>private.localhost</client>
121 <client>public.localhost</client>
125 <server>public.localhost</server>
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>
134 <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
136 <logfile>syslog</logfile>
137 <syslog>local2</syslog>
139 <loglevel>3</loglevel>
142 <!-- private router -->
144 <server>private.localhost</server>
146 Only clients on the private domain can send requests to this router
148 <client>private.localhost</client>
151 <server>private.localhost</server>
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>
159 <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
161 <logfile>syslog</logfile>
162 <syslog>local2</syslog>
164 <loglevel>3</loglevel>
167 <!-- ======================================================================================== -->