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>
58 <!-- Optional log tag. You can use this to help distinguish
59 syslog entries when running multiple OpenSRF stacks on the
62 <logtag>instance1</logtag>
65 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
66 <loglevel>3</loglevel>
68 <!-- Maximum log message length; if using syslog, you might need to adjust
69 your syslog service's configuration to match longer message lengths -->
70 <loglength>1536</loglength>
72 <!-- config file for the services -->
73 <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
77 <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
81 we consider ourselves to be the "originating" client for requests,
82 which means we define the log XID string for log traces
86 <!-- the routers's name on the network -->
87 <router_name>router</router_name>
89 <!-- jabber login info -->
90 <!-- The gateway connects to the public domain -->
91 <domain>public.localhost</domain>
92 <username>opensrf</username>
93 <passwd>password</passwd>
95 <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
96 <loglevel>3</loglevel>
100 <!-- ======================================================================================== -->
103 <router> <!-- public router -->
105 <!-- allow private services to register with this router
106 and public clients to send requests to this router. -->
107 <server>private.localhost</server>
108 <!-- also allow private clients to send to the router so it can receive error messages -->
109 <client>private.localhost</client>
110 <client>public.localhost</client>
113 <server>public.localhost</server>
115 <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
116 <username>router</username>
117 <password>password</password>
118 <resource>router</resource>
119 <connect_timeout>10</connect_timeout>
120 <max_reconnect_attempts>5</max_reconnect_attempts>
122 <logfile>LOCALSTATEDIR/log/router.log</logfile>
124 <logfile>syslog</logfile>
125 <syslog>local2</syslog>
128 <logtag>instance1</logtag>
130 <loglevel>2</loglevel>
132 <router> <!-- private router -->
134 <server>private.localhost</server>
135 <!-- only clients on the private domain can send requests to this router -->
136 <client>private.localhost</client>
139 <server>private.localhost</server>
141 <username>router</username>
142 <password>password</password>
143 <resource>router</resource>
144 <connect_timeout>10</connect_timeout>
145 <max_reconnect_attempts>5</max_reconnect_attempts>
147 <logfile>LOCALSTATEDIR/log/router.log</logfile>
149 <logfile>syslog</logfile>
150 <syslog>local2</syslog>
153 <logtag>instance1</logtag>
155 <loglevel>4</loglevel>
159 <!-- ======================================================================================== -->
162 <!-- Any methods which match any of these match_string node values will
163 have their params redacted from lower-level input logging.
164 Adjust these examples as needed. -->
167 <match_string>open-ils.auth</match_string>
168 <match_string>open-ils.some_service.some_method</match_string>