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.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.resolver</service>
34 <service>open-ils.search</service>
35 <service>open-ils.supercat</service>
36 <service>open-ils.vandelay</service>
37 <service>open-ils.serial</service>
43 This is the private router. All applications must register with
44 this router, so no explicit <services> section is required
47 <domain>private.localhost</domain>
51 <!-- Our domain should match that of the private router -->
52 <domain>private.localhost</domain>
53 <username>opensrf</username>
54 <passwd>password</passwd>
58 Name of the router used on our private domain.
59 This should match one of the <name> of the private router above.
61 <router_name>router</router_name>
63 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
65 <logfile>syslog</logfile>
66 <syslog>local0</syslog>
67 <actlog>local1</actlog>
69 <loglevel>3</loglevel>
70 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
73 The section between <gateway>...</gateway> is a standard OpenSRF C
74 stack configuration file
78 <router_name>router</router_name>
80 <!-- The gateway connects to the public domain for security -->
81 <domain>public.localhost</domain>
83 <!-- This section will be soon deprecated for multi-domain mode... -->
85 <service>opensrf.math</service>
86 <service>opensrf.dbmath</service>
87 <service>open-ils.cat</service>
88 <service>open-ils.search</service>
89 <service>open-ils.circ</service>
90 <service>open-ils.actor</service>
91 <service>open-ils.auth</service>
92 <service>open-ils.collections</service>
93 <service>open-ils.reporter</service>
96 <!-- jabber login info -->
97 <username>opensrf</username>
98 <passwd>password</passwd>
100 <loglevel>3</loglevel>
101 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
103 <logfile>syslog</logfile>
104 <syslog>local6</syslog>
105 <actlog>local1</actlog>
108 <!-- ======================================================================================== -->
111 <!-- public router -->
114 Allow private services to register with this router
115 and public client to send requests to this router.
117 <server>private.localhost</server>
120 Also allow private clients to send to the router so it
121 can receive error messages
123 <client>private.localhost</client>
124 <client>public.localhost</client>
128 <server>public.localhost</server>
130 <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
131 <username>router</username>
132 <password>password</password>
133 <resource>router</resource>
134 <connect_timeout>10</connect_timeout>
135 <max_reconnect_attempts>5</max_reconnect_attempts>
137 <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
139 <logfile>syslog</logfile>
140 <syslog>local2</syslog>
142 <loglevel>2</loglevel>
145 <!-- private router -->
147 <server>private.localhost</server>
149 Only clients on the private domain can send requests to this router
151 <client>private.localhost</client>
154 <server>private.localhost</server>
156 <username>router</username>
157 <password>password</password>
158 <resource>router</resource>
159 <connect_timeout>10</connect_timeout>
160 <max_reconnect_attempts>5</max_reconnect_attempts>
162 <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
164 <logfile>syslog</logfile>
165 <syslog>local2</syslog>
167 <loglevel>2</loglevel>
170 <!-- ======================================================================================== -->