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.auth_proxy</service>
26 <service>open-ils.booking</service>
27 <service>open-ils.cat</service>
28 <service>open-ils.circ</service>
29 <service>open-ils.collections</service>
30 <service>open-ils.fielder</service>
31 <service>open-ils.pcrud</service>
32 <service>open-ils.permacrud</service>
33 <service>open-ils.reporter</service>
34 <service>open-ils.resolver</service>
35 <service>open-ils.search</service>
36 <service>open-ils.supercat</service>
37 <service>open-ils.vandelay</service>
38 <service>open-ils.serial</service>
44 This is the private router. All applications must register with
45 this router, so no explicit <services> section is required
48 <domain>private.localhost</domain>
52 <!-- Our domain should match that of the private router -->
53 <domain>private.localhost</domain>
54 <username>opensrf</username>
55 <passwd>password</passwd>
59 Name of the router used on our private domain.
60 This should match one of the <name> of the private router above.
62 <router_name>router</router_name>
64 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
66 <logfile>syslog</logfile>
67 <syslog>local0</syslog>
68 <actlog>local1</actlog>
70 <loglevel>3</loglevel>
71 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
74 The section between <gateway>...</gateway> is a standard OpenSRF C
75 stack configuration file
79 <router_name>router</router_name>
81 <!-- The gateway connects to the public domain for security -->
82 <domain>public.localhost</domain>
84 <!-- This section will be soon deprecated for multi-domain mode... -->
86 <service>opensrf.math</service>
87 <service>opensrf.dbmath</service>
88 <service>open-ils.cat</service>
89 <service>open-ils.search</service>
90 <service>open-ils.circ</service>
91 <service>open-ils.actor</service>
92 <service>open-ils.auth</service>
93 <service>open-ils.auth_proxy</service>
94 <service>open-ils.collections</service>
95 <service>open-ils.reporter</service>
98 <!-- jabber login info -->
99 <username>opensrf</username>
100 <passwd>password</passwd>
102 <loglevel>3</loglevel>
103 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
105 <logfile>syslog</logfile>
106 <syslog>local6</syslog>
107 <actlog>local1</actlog>
110 <!-- ======================================================================================== -->
113 <!-- public router -->
116 Allow private services to register with this router
117 and public client to send requests to this router.
119 <server>private.localhost</server>
122 Also allow private clients to send to the router so it
123 can receive error messages
125 <client>private.localhost</client>
126 <client>public.localhost</client>
130 <server>public.localhost</server>
132 <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
133 <username>router</username>
134 <password>password</password>
135 <resource>router</resource>
136 <connect_timeout>10</connect_timeout>
137 <max_reconnect_attempts>5</max_reconnect_attempts>
139 <logfile>LOCALSTATEDIR/log/router-public.log</logfile>
141 <logfile>syslog</logfile>
142 <syslog>local2</syslog>
144 <loglevel>2</loglevel>
147 <!-- private router -->
149 <server>private.localhost</server>
151 Only clients on the private domain can send requests to this router
153 <client>private.localhost</client>
156 <server>private.localhost</server>
158 <username>router</username>
159 <password>password</password>
160 <resource>router</resource>
161 <connect_timeout>10</connect_timeout>
162 <max_reconnect_attempts>5</max_reconnect_attempts>
164 <logfile>LOCALSTATEDIR/log/router-private.log</logfile>
166 <logfile>syslog</logfile>
167 <syslog>local2</syslog>
169 <loglevel>2</loglevel>
172 <!-- ======================================================================================== -->