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.search</service>
34 <service>open-ils.supercat</service>
35 <service>open-ils.vandelay</service>
41 This is the private router. All applications must register with
42 this router, so no explicit <services> section is required
45 <domain>private.localhost</domain>
49 <!-- Our domain should match that of the private router -->
50 <domain>private.localhost</domain>
51 <username>opensrf</username>
52 <passwd>password</passwd>
56 Name of the router used on our private domain.
57 This should match one of the <name> of the private router above.
59 <router_name>router</router_name>
61 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
63 <logfile>syslog</logfile>
64 <syslog>local0</syslog>
65 <actlog>local1</actlog>
67 <loglevel>3</loglevel>
68 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
71 The section between <gateway>...</gateway> is a standard OpenSRF C
72 stack configuration file
76 <router_name>router</router_name>
78 <!-- The gateway connects to the public domain for security -->
79 <domain>public.localhost</domain>
81 <!-- This section will be soon deprecated for multi-domain mode... -->
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>
94 <!-- jabber login info -->
95 <username>opensrf</username>
96 <passwd>password</passwd>
98 <loglevel>3</loglevel>
99 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
101 <logfile>syslog</logfile>
102 <syslog>local6</syslog>
103 <actlog>local1</actlog>
106 <!-- ======================================================================================== -->
109 <!-- public router -->
112 Allow private services to register with this router
113 and public client to send requests to this router.
115 <server>private.localhost</server>
118 Also allow private clients to send to the router so it
119 can receive error messages
121 <client>private.localhost</client>
122 <client>public.localhost</client>
126 <server>public.localhost</server>
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>
135 <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
137 <logfile>syslog</logfile>
138 <syslog>local2</syslog>
140 <loglevel>2</loglevel>
143 <!-- private router -->
145 <server>private.localhost</server>
147 Only clients on the private domain can send requests to this router
149 <client>private.localhost</client>
152 <server>private.localhost</server>
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>
160 <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
162 <logfile>syslog</logfile>
163 <syslog>local2</syslog>
165 <loglevel>2</loglevel>
168 <!-- ======================================================================================== -->