7 <!-- bootstrap config for OpenSRF apps -->
12 <!-- define the list of routers our services will register with -->
16 <!-- This is the public router. On this router, we only register applications
17 which should be accessible to everyone on the opensrf network -->
19 <domain>public.localhost</domain>
21 <service>opensrf.math</service>
26 <!-- This is the private router. All applications must register with
27 this router, so no explicit <services> section is required -->
29 <domain>localhost</domain>
34 <!-- Jabber login settings
35 Our domain should match that of the private router -->
36 <domain>localhost</domain>
37 <username>client</username>
38 <passwd>mypass</passwd>
41 <!-- log file settings ====================================== -->
42 <!-- log to a local file -->
43 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
45 <!-- Log to syslog. You can use this same layout for
46 defining the logging of all services in this file -->
48 <logfile>syslog</logfile>
49 <syslog>local2</syslog>
50 <actlog>local1</actlog>
53 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
54 <loglevel>3</loglevel>
56 <!-- config file for the services -->
57 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
61 <!-- Update this if you use ChopChop -->
63 <!-- Our jabber server -->
64 <domain>localhost</domain>
66 <!-- used when multiple servers need to communicate -->
67 <s2sport>5269</s2sport>
68 <secret>secret</secret>
69 <listen_address>10.0.0.3</listen_address>
70 <loglevel>3</loglevel>
71 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
74 <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
78 we consider ourselves to be the "originating" client for requests,
79 which means we define the log XID string for log traces
83 <!-- the routers's name on the network -->
84 <router_name>router</router_name>
87 These are the services that the gateway will serve.
88 Any other requests will receive an HTTP_NOT_FOUND (404)
89 DO NOT put any services here that you don't want the internet to have access to
90 This section will be soon deprecated for multi-domain mode...
93 <service>opensrf.math</service>
96 <!-- jabber login info -->
98 <!-- The gateway connects to the public domain -->
99 <domain>public.localhost</domain>
100 <username>mylogin</username>
101 <passwd>mypassword</passwd>
103 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
104 <loglevel>3</loglevel>
108 <!-- ======================================================================================== -->
111 <router> <!-- public router -->
113 <!-- allow private services to register with this router
114 and public clients to send requests to this router. -->
115 <server>localhost</server>
116 <!-- also allow private clients to send to the router so it can receive error messages -->
117 <client>localhost</client>
118 <client>public.localhost</client>
121 <server>public.localhost</server>
123 <unixpath>/openils/var/sock/unix_sock</unixpath>
124 <username>router</username>
125 <password>osrf</password>
126 <resource>router</resource>
127 <connect_timeout>10</connect_timeout>
128 <max_reconnect_attempts>5</max_reconnect_attempts>
130 <logfile>/openils/var/log/router.log</logfile>
132 <logfile>syslog</logfile>
133 <syslog>local2</syslog>
135 <loglevel>2</loglevel>
137 <router> <!-- private router -->
139 <server>localhost</server>
140 <!-- only clients on the private domain can send requests to this router -->
141 <client>localhost</client>
144 <server>localhost</server>
146 <username>router</username>
147 <password>osrf</password>
148 <resource>router</resource>
149 <connect_timeout>10</connect_timeout>
150 <max_reconnect_attempts>5</max_reconnect_attempts>
152 <logfile>/openils/var/log/router.log</logfile>
154 <logfile>syslog</logfile>
155 <syslog>local2</syslog>
157 <loglevel>4</loglevel>
161 <!-- ======================================================================================== -->