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>private.localhost</domain>
34 <!-- Jabber login settings
35 Our domain should match that of the private router -->
36 <domain>private.localhost</domain>
37 <username>opensrf</username>
38 <passwd>password</passwd>
40 <!-- name of the router used on our private domain.
41 this should match one of the <name> of the private router above -->
42 <router_name>router</router_name>
44 <!-- Log a warning when an outbound message reaches this size in bytes -->
45 <msg_size_warn>1800000</msg_size_warn>
47 <!-- log file settings ====================================== -->
48 <!-- log to a local file -->
49 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
51 <!-- Log to syslog. You can use this same layout for
52 defining the logging of all services in this file -->
54 <logfile>syslog</logfile>
55 <syslog>local2</syslog>
56 <actlog>local1</actlog>
59 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
60 <loglevel>3</loglevel>
62 <!-- Maximum log message length; if using syslog, you might need to adjust
63 your syslog service's configuration to match longer message lengths -->
64 <loglength>1536</loglength>
66 <!-- config file for the services -->
67 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
71 <!-- Update this if you use ChopChop -->
73 <!-- Our jabber server -->
74 <domain>private.localhost</domain>
76 <!-- used when multiple servers need to communicate -->
77 <s2sport>5269</s2sport>
78 <secret>secret</secret>
79 <listen_address>10.0.0.3</listen_address>
80 <loglevel>3</loglevel>
81 <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
84 <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
88 we consider ourselves to be the "originating" client for requests,
89 which means we define the log XID string for log traces
93 <!-- the routers's name on the network -->
94 <router_name>router</router_name>
96 <!-- jabber login info -->
97 <!-- The gateway connects to the public domain -->
98 <domain>public.localhost</domain>
99 <username>opensrf</username>
100 <passwd>password</passwd>
102 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
103 <loglevel>3</loglevel>
107 <!-- ======================================================================================== -->
110 <router> <!-- public router -->
112 <!-- allow private services to register with this router
113 and public clients to send requests to this router. -->
114 <server>private.localhost</server>
115 <!-- also allow private clients to send to the router so it can receive error messages -->
116 <client>private.localhost</client>
117 <client>public.localhost</client>
120 <server>public.localhost</server>
122 <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
123 <username>router</username>
124 <password>password</password>
125 <resource>router</resource>
126 <connect_timeout>10</connect_timeout>
127 <max_reconnect_attempts>5</max_reconnect_attempts>
129 <logfile>LOCALSTATEDIR/log/router.log</logfile>
131 <logfile>syslog</logfile>
132 <syslog>local2</syslog>
134 <loglevel>2</loglevel>
136 <router> <!-- private router -->
138 <server>private.localhost</server>
139 <!-- only clients on the private domain can send requests to this router -->
140 <client>private.localhost</client>
143 <server>private.localhost</server>
145 <username>router</username>
146 <password>password</password>
147 <resource>router</resource>
148 <connect_timeout>10</connect_timeout>
149 <max_reconnect_attempts>5</max_reconnect_attempts>
151 <logfile>LOCALSTATEDIR/log/router.log</logfile>
153 <logfile>syslog</logfile>
154 <syslog>local2</syslog>
156 <loglevel>4</loglevel>
160 <!-- ======================================================================================== -->