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>
36 <service>open-ils.serial</service>
42 This is the private router. All applications must register with
43 this router, so no explicit <services> section is required
46 <domain>private.localhost</domain>
50 <!-- Our domain should match that of the private router -->
51 <domain>private.localhost</domain>
52 <username>opensrf</username>
53 <passwd>password</passwd>
57 Name of the router used on our private domain.
58 This should match one of the <name> of the private router above.
60 <router_name>router</router_name>
62 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
64 <logfile>syslog</logfile>
65 <syslog>local0</syslog>
66 <actlog>local1</actlog>
68 <loglevel>3</loglevel>
69 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
72 The section between <gateway>...</gateway> is a standard OpenSRF C
73 stack configuration file
77 <router_name>router</router_name>
79 <!-- The gateway connects to the public domain for security -->
80 <domain>public.localhost</domain>
82 <!-- This section will be soon deprecated for multi-domain mode... -->
84 <service>opensrf.math</service>
85 <service>opensrf.dbmath</service>
86 <service>open-ils.cat</service>
87 <service>open-ils.search</service>
88 <service>open-ils.circ</service>
89 <service>open-ils.actor</service>
90 <service>open-ils.auth</service>
91 <service>open-ils.collections</service>
92 <service>open-ils.reporter</service>
95 <!-- jabber login info -->
96 <username>opensrf</username>
97 <passwd>password</passwd>
99 <loglevel>3</loglevel>
100 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
102 <logfile>syslog</logfile>
103 <syslog>local6</syslog>
104 <actlog>local1</actlog>
107 <!-- ======================================================================================== -->
110 <!-- public router -->
113 Allow private services to register with this router
114 and public client to send requests to this router.
116 <server>private.localhost</server>
119 Also allow private clients to send to the router so it
120 can receive error messages
122 <client>private.localhost</client>
123 <client>public.localhost</client>
127 <server>public.localhost</server>
129 <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
130 <username>router</username>
131 <password>password</password>
132 <resource>router</resource>
133 <connect_timeout>10</connect_timeout>
134 <max_reconnect_attempts>5</max_reconnect_attempts>
136 <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
138 <logfile>syslog</logfile>
139 <syslog>local2</syslog>
141 <loglevel>2</loglevel>
144 <!-- private router -->
146 <server>private.localhost</server>
148 Only clients on the private domain can send requests to this router
150 <client>private.localhost</client>
153 <server>private.localhost</server>
155 <username>router</username>
156 <password>password</password>
157 <resource>router</resource>
158 <connect_timeout>10</connect_timeout>
159 <max_reconnect_attempts>5</max_reconnect_attempts>
161 <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
163 <logfile>syslog</logfile>
164 <syslog>local2</syslog>
166 <loglevel>2</loglevel>
169 <!-- ======================================================================================== -->