Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- opensrf.xml Paste
- <?xml version="1.0"?>
- <!--
- vim:et:ts=2:sw=2:
- -->
- <opensrf version="0.0.3">
- <!--
- There is one <host> entry for each server on the network. Settings for the
- 'default' host are used for every setting that isn't overridden within a given
- host's config.
- To specify which applications a host is serving, list those applications
- within that host's config section. If the defaults are acceptible, then
- that's all that needs to be added/changed.
- Any valid XML may be added to the <default> block and server components will have
- acces to it.
- -->
- <default>
- <dirs>
- <!-- opensrf log files go in this directory -->
- <log>/openils/var/log</log>
- <!-- opensrf unix domaind socket files go here -->
- <sock>/openils/var/lock</sock>
- <!-- opensrf pids go here -->
- <pid>/openils/var/run</pid>
- <!-- global config directory -->
- <conf>/openils/conf</conf>
- </dirs>
- <!-- prefork, simple. prefork is suggested -->
- <server_type>prefork</server_type>
- <!-- Default doesn't host any apps -->
- <activeapps/>
- <cache>
- <global>
- <servers>
- <!-- memcached server ip:port -->
- <server>127.0.0.1:11211</server>
- </servers>
- <!-- maximum time that anything may stay in the cache -->
- <max_cache_time>86400</max_cache_time>
- </global>
- </cache>
- <!--
- These are the defaults for every served app. Each server should
- duplicate the node layout for any nodes that need changing.
- Any settings that are overridden in the server specific section
- will be used as the config values for that server. Any settings that are
- not overridden will fall back on the defaults
- Note that overriding 'stateless' will break things
- -->
- <apps>
- <opensrf.persist>
- <!--
- How many seconds to wait between server
- requests before timing out a stateful server session.
- -->
- <keepalive>1</keepalive>
- <!--
- if 1, then we support stateless sessions (no connect required),
- if 0 then we don't
- -->
- <stateless>1</stateless>
- <!--
- Tells the servers which language this implementation is coded in
- In this case non "perl" servers will not be able to load the module
- -->
- <language>perl</language>
- <!-- Module the implements this application -->
- <implementation>OpenSRF::Application::Persist</implementation>
- <!-- max stateful REQUEST requests before a session automatically disconnects a client -->
- <max_requests>97</max_requests>
- <!-- this will disable the stderr output log for this service -->
- <!--<diable_stderr>true</disable_stderr>-->
- <!-- settings for the backend application drones. These are probably sane defaults -->
- <unix_config>
- <!-- unix socket file -->
- <unix_sock>opensrf.persist_unix.sock</unix_sock>
- <!-- pid file -->
- <unix_pid>opensrf.persist_unix.pid</unix_pid>
- <!-- max requests per process backend before a child is recycled -->
- <max_requests>1000</max_requests>
- <!-- log file for this application -->
- <unix_log>opensrf.persist_unix.log</unix_log>
- <!-- Number of children to pre-fork -->
- <min_children>5</min_children>
- <!-- maximun number of children to fork -->
- <max_children>25</max_children>
- <!-- minimun number of spare forked children -->
- <min_spare_children>2</min_spare_children>
- <!-- max number of spare forked children -->
- <max_spare_children>5</max_spare_children>
- </unix_config>
- <!-- Any additional setting for a particular application go in the app_settings node -->
- <app_settings>
- <!-- sqlite database file -->
- <dbfile>/openils/var/persist.db</dbfile>
- </app_settings>
- </opensrf.persist>
- <opensrf.math>
- <keepalive>3</keepalive>
- <stateless>1</stateless>
- <language>c</language>
- <implementation>osrf_math.so</implementation>
- <unix_config>
- <unix_sock>opensrf.math_unix.sock</unix_sock>
- <unix_pid>opensrf.math_unix.pid</unix_pid>
- <max_requests>1000</max_requests>
- <unix_log>opensrf.math_unix.log</unix_log>
- <min_children>5</min_children>
- <max_children>15</max_children>
- <min_spare_children>2</min_spare_children>
- <max_spare_children>5</max_spare_children>
- </unix_config>
- </opensrf.math>
- <opensrf.dbmath>
- <keepalive>3</keepalive>
- <stateless>1</stateless>
- <language>c</language>
- <implementation>osrf_dbmath.so</implementation>
- <unix_config>
- <max_requests>1000</max_requests>
- <unix_log>opensrf.dbmath_unix.log</unix_log>
- <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
- <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
- <min_children>5</min_children>
- <max_children>15</max_children>
- <min_spare_children>2</min_spare_children>
- <max_spare_children>5</max_spare_children>
- </unix_config>
- </opensrf.dbmath>
- <opensrf.settings>
- <keepalive>1</keepalive>
- <stateless>1</stateless>
- <language>perl</language>
- <implementation>OpenSRF::Application::Settings</implementation>
- <max_requests>17</max_requests>
- <unix_config>
- <unix_sock>opensrf.settings_unix.sock</unix_sock>
- <unix_pid>opensrf.settings_unix.pid</unix_pid>
- <max_requests>1000</max_requests>
- <unix_log>opensrf.settings_unix.log</unix_log>
- <min_children>5</min_children>
- <max_children>15</max_children>
- <min_spare_children>3</min_spare_children>
- <max_spare_children>5</max_spare_children>
- </unix_config>
- </opensrf.settings>
- <opensrf.validator>
- <keepalive>1</keepalive>
- <stateless>1</stateless>
- <language>perl</language>
- <implementation>OpenSRF::Application::Validator</implementation>
- <max_requests>17</max_requests>
- <unix_config>
- <unix_sock>opensrf.validator_unix.sock</unix_sock>
- <unix_pid>opensrf.validator_unix.pid</unix_pid>
- <max_requests>1000</max_requests>
- <unix_log>opensrf.validator_unix.log</unix_log>
- <min_children>5</min_children>
- <max_children>15</max_children>
- <min_spare_children>3</min_spare_children>
- <max_spare_children>5</max_spare_children>
- </unix_config>
- <app_settings>
- <validators>
- <emailaddress>
- <modules>
- <a_regex>
- <implementation>OpenSRF::Application::Validator::EmailAddress::Regex</implementation>
- </a_regex>
- <b_dns>
- <implementation>OpenSRF::Application::Validator::EmailAddress::DNS</implementation>
- <check_mx_a>1</check_mx_a>
- <!-- Change this to a 1 to check for IPV6 records as well as IPV4 -->
- <check_aaaa>0</check_aaaa>
- <!-- Uncomment this to specify a resolve.conf-like config file for DNS lookups -->
- <!--<config_file>/path/to/file</config_file>-->
- <!-- A set of IPs to ignore - Useful when your DNS provider intercepts NXDOMAIN (say, OpenDNS) -->
- <ignore_ips>127.0.0.1,67.215.65.132</ignore_ips>
- </b_dns>
- </modules>
- </emailaddress>
- </validators>
- </app_settings>
- </opensrf.validator>
- </apps>
- </default>
- <hosts>
- <localhost>
- <!-- ^-=-
- Should match the fully qualified domain name of the host.
- On Linux, the output of the following command is authoritative:
- $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
- To use 'localhost' instead, run osrf_control with the 'localhost' flag
- -->
- <!-- List all of the apps this server will be running -->
- <activeapps>
- <appname>opensrf.persist</appname>
- <appname>opensrf.settings</appname>
- <appname>opensrf.math</appname>
- <appname>opensrf.dbmath</appname>
- <appname>opensrf.validator</appname>
- </activeapps>
- <apps>
- <!-- Example of an app-specific setting override -->
- <opensrf.persist>
- <app_settings>
- <dbfile>/openils/var/persist-override.db</dbfile>
- </app_settings>
- </opensrf.persist>
- </apps>
- </localhost>
- </hosts>
- </opensrf>
- opensrf_core.xml Paste
- <?xml version="1.0"?>
- <!--
- Example OpenSRF bootstrap configuration file for Evergreen
- -->
- <config>
- <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
- <opensrf>
- <routers>
- <!-- define the list of routers our services will register with -->
- <router>
- <!--
- This is the public router. On this router, we only register
- applications which should be accessible to everyone on the OpenSRF
- network
- -->
- <name>router</name>
- <domain>public.localhost</domain>
- <services>
- <service>opensrf.math</service>
- <service>open-ils.actor</service>
- <service>open-ils.acq</service>
- <service>open-ils.auth</service>
- <service>open-ils.auth_proxy</service>
- <service>open-ils.booking</service>
- <service>open-ils.cat</service>
- <service>open-ils.circ</service>
- <service>open-ils.collections</service>
- <service>open-ils.fielder</service>
- <service>open-ils.pcrud</service>
- <service>open-ils.permacrud</service>
- <service>open-ils.reporter</service>
- <service>open-ils.resolver</service>
- <service>open-ils.search</service>
- <service>open-ils.supercat</service>
- <service>open-ils.url_verify</service>
- <service>open-ils.vandelay</service>
- <service>open-ils.serial</service>
- </services>
- </router>
- <router>
- <!--
- This is the private router. All applications must register with
- this router, so no explicit <services> section is required
- -->
- <name>router</name>
- <domain>private.localhost</domain>
- </router>
- </routers>
- <!-- Our domain should match that of the private router -->
- <domain>private.localhost</domain>
- <username>opensrf</username>
- <passwd>willett</passwd>
- <port>5222</port>
- <!--
- Name of the router used on our private domain.
- This should match one of the <name> of the private router above.
- -->
- <router_name>router</router_name>
- <logfile>/openils/log/osrfsys.log</logfile>
- <!--
- <logfile>syslog</logfile>
- <syslog>local0</syslog>
- <actlog>local1</actlog>
- -->
- <loglevel>4</loglevel>
- <settings_config>/openils/conf/opensrf.xml</settings_config>
- </opensrf>
- <!--
- The section between <gateway>...</gateway> is a standard OpenSRF C
- stack configuration file
- -->
- <gateway>
- <client>true</client>
- <router_name>router</router_name>
- <!-- The gateway connects to the public domain for security -->
- <domain>public.localhost</domain>
- <!-- This section will be soon deprecated for multi-domain mode... -->
- <services>
- <service>opensrf.math</service>
- <service>opensrf.dbmath</service>
- <service>open-ils.cat</service>
- <service>open-ils.search</service>
- <service>open-ils.circ</service>
- <service>open-ils.actor</service>
- <service>open-ils.auth</service>
- <service>open-ils.auth_proxy</service>
- <service>open-ils.collections</service>
- <service>open-ils.reporter</service>
- </services>
- <!-- jabber login info -->
- <username>opensrf</username>
- <passwd>willett</passwd>
- <port>5222</port>
- <loglevel>4</loglevel>
- <logfile>/openils/log/gateway.log</logfile>
- <!--
- <logfile>syslog</logfile>
- <syslog>local6</syslog>
- <actlog>local1</actlog>
- -->
- </gateway>
- <!-- ======================================================================================== -->
- <routers>
- <router>
- <!-- public router -->
- <trusted_domains>
- <!--
- Allow private services to register with this router
- and public client to send requests to this router.
- -->
- <server>private.localhost</server>
- <!--
- Also allow private clients to send to the router so it
- can receive error messages
- -->
- <client>private.localhost</client>
- <client>public.localhost</client>
- </trusted_domains>
- <transport>
- <server>public.localhost</server>
- <port>5222</port>
- <unixpath>/openils/sock/unix_sock</unixpath>
- <username>router</username>
- <password>willett</password>
- <resource>router</resource>
- <connect_timeout>10</connect_timeout>
- <max_reconnect_attempts>5</max_reconnect_attempts>
- </transport>
- <logfile>/openils/log/router-public.log</logfile>
- <!--
- <logfile>syslog</logfile>
- <syslog>local2</syslog>
- -->
- <loglevel>2</loglevel>
- </router>
- <router>
- <!-- private router -->
- <trusted_domains>
- <server>private.localhost</server>
- <!--
- Only clients on the private domain can send requests to this router
- -->
- <client>private.localhost</client>
- </trusted_domains>
- <transport>
- <server>private.localhost</server>
- <port>5222</port>
- <username>router</username>
- <password>willett</password>
- <resource>router</resource>
- <connect_timeout>10</connect_timeout>
- <max_reconnect_attempts>5</max_reconnect_attempts>
- </transport>
- <logfile>/openils/log/router-private.log</logfile>
- <!--
- <logfile>syslog</logfile>
- <syslog>local2</syslog>
- -->
- <loglevel>2</loglevel>
- </router>
- </routers>
- <!-- ======================================================================================== -->
- <!-- Any methods which match any of these match_string node values will
- have their params redacted from lower-level input logging.
- Adjust these examples as needed. -->
- <shared>
- <log_protect>
- <match_string>open-ils.auth.authenticate.verify</match_string>
- <match_string>open-ils.auth.authenticate.complete</match_string>
- <match_string>open-ils.auth_proxy.login</match_string>
- <match_string>open-ils.actor.patron.password_reset.commit</match_string>
- <match_string>open-ils.actor.user.password</match_string>
- <match_string>open-ils.actor.user.username</match_string>
- <match_string>open-ils.actor.user.email</match_string>
- <match_string>open-ils.actor.patron.update</match_string>
- <match_string>open-ils.cstore.direct.actor.user.create</match_string>
- <match_string>open-ils.cstore.direct.actor.user.update</match_string>
- <match_string>open-ils.cstore.direct.actor.user.delete</match_string>
- <match_string>open-ils.search.z3950.apply_credentials</match_string>
- </log_protect>
- </shared>
- </config>
- srfsh.xml Paste
- <?xml version="1.0"?>
- <!-- This file follows the standard bootstrap config file layout found in opensrf_core.xml -->
- <srfsh>
- <router_name>router</router_name>
- <domain>private.localhost</domain>
- <username>opensrf</username>
- <passwd>willett</passwd>
- <port>5222</port>
- <logfile>/openils/var/log/srfsh.log</logfile>
- <loglevel>4</loglevel>
- <client>true</client>
- </srfsh>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement