Guest User

xml pastes

a guest
Apr 17th, 2014
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. opensrf.xml Paste
  2.  
  3. <?xml version="1.0"?>
  4. <!--
  5. vim:et:ts=2:sw=2:
  6. -->
  7. <opensrf version="0.0.3">
  8. <!--
  9.  
  10.     There is one <host> entry for each server on the network.  Settings for the
  11.     'default' host are used for every setting that isn't overridden within a given
  12.     host's config.  
  13.  
  14.     To specify which applications a host is serving, list those applications
  15.     within that host's config section.  If the defaults are acceptible, then
  16.     that's all that needs to be added/changed.
  17.  
  18.     Any valid XML may be added to the <default> block and server components will have
  19.     acces to it.
  20.  
  21. -->
  22.  
  23.   <default>
  24.     <dirs>
  25.  
  26.       <!-- opensrf log files go in this directory -->
  27.       <log>/openils/var/log</log>
  28.  
  29.       <!-- opensrf unix domaind socket files go here -->
  30.       <sock>/openils/var/lock</sock>
  31.  
  32.       <!-- opensrf pids go here -->
  33.       <pid>/openils/var/run</pid>
  34.  
  35.       <!-- global config directory -->
  36.       <conf>/openils/conf</conf>
  37.     </dirs>
  38.  
  39.     <!-- prefork, simple. prefork is suggested -->
  40.     <server_type>prefork</server_type>
  41.  
  42.     <!-- Default doesn't host any apps -->
  43.     <activeapps/>
  44.     <cache>
  45.       <global>
  46.         <servers>
  47.  
  48.           <!-- memcached server ip:port -->
  49.           <server>127.0.0.1:11211</server>
  50.  
  51.         </servers>
  52.  
  53.         <!-- maximum time that anything may stay in the cache -->
  54.         <max_cache_time>86400</max_cache_time>
  55.  
  56.       </global>
  57.     </cache>
  58.  
  59.     <!--
  60.    These are the defaults for every served app.  Each server should
  61.    duplicate the node layout for any nodes that need changing.
  62.    Any settings that are overridden in the server specific section
  63.    will be used as the config values for that server.  Any settings that are
  64.    not overridden will fall back on the defaults
  65.    Note that overriding 'stateless' will break things
  66.    -->
  67.  
  68.     <apps>
  69.       <opensrf.persist>
  70.  
  71.         <!--
  72.        How many seconds to wait between server
  73.        requests before timing out a stateful server session.
  74.        -->
  75.         <keepalive>1</keepalive>
  76.  
  77.         <!--
  78.        if 1, then we support stateless sessions (no connect required),
  79.        if 0 then we don't
  80.        -->
  81.         <stateless>1</stateless>
  82.  
  83.         <!--
  84.        Tells the servers which language this implementation is coded in
  85.        In this case non "perl" servers will not be able to load the module
  86.        -->
  87.         <language>perl</language>
  88.  
  89.         <!-- Module the implements this application -->
  90.         <implementation>OpenSRF::Application::Persist</implementation>
  91.  
  92.         <!-- max stateful REQUEST requests before a session automatically disconnects a client -->
  93.         <max_requests>97</max_requests>
  94.  
  95.         <!-- this will disable the stderr output log for this service -->
  96.         <!--<diable_stderr>true</disable_stderr>-->
  97.  
  98.         <!-- settings for the backend application drones.  These are probably sane defaults -->
  99.         <unix_config>
  100.  
  101.           <!-- unix socket file -->
  102.           <unix_sock>opensrf.persist_unix.sock</unix_sock>
  103.  
  104.           <!-- pid file -->
  105.           <unix_pid>opensrf.persist_unix.pid</unix_pid>
  106.  
  107.           <!-- max requests per process backend before a child is recycled -->
  108.           <max_requests>1000</max_requests>
  109.  
  110.           <!-- log file for this application -->
  111.           <unix_log>opensrf.persist_unix.log</unix_log>
  112.  
  113.           <!-- Number of children to pre-fork -->
  114.           <min_children>5</min_children>
  115.  
  116.           <!-- maximun number of children to fork -->
  117.           <max_children>25</max_children>
  118.  
  119.           <!-- minimun number of spare forked children -->
  120.           <min_spare_children>2</min_spare_children>
  121.  
  122.           <!-- max number of spare forked children -->
  123.           <max_spare_children>5</max_spare_children>
  124.  
  125.         </unix_config>
  126.  
  127.         <!-- Any additional setting for a particular application go in the app_settings node -->
  128.         <app_settings>
  129.  
  130.           <!-- sqlite database file -->
  131.           <dbfile>/openils/var/persist.db</dbfile>
  132.  
  133.         </app_settings>
  134.       </opensrf.persist>
  135.  
  136.       <opensrf.math>
  137.         <keepalive>3</keepalive>
  138.         <stateless>1</stateless>
  139.         <language>c</language>
  140.         <implementation>osrf_math.so</implementation>
  141.         <unix_config>
  142.           <unix_sock>opensrf.math_unix.sock</unix_sock>
  143.           <unix_pid>opensrf.math_unix.pid</unix_pid>
  144.           <max_requests>1000</max_requests>
  145.           <unix_log>opensrf.math_unix.log</unix_log>
  146.           <min_children>5</min_children>
  147.           <max_children>15</max_children>
  148.           <min_spare_children>2</min_spare_children>
  149.           <max_spare_children>5</max_spare_children>
  150.         </unix_config>
  151.       </opensrf.math>
  152.  
  153.       <opensrf.dbmath>
  154.         <keepalive>3</keepalive>
  155.         <stateless>1</stateless>
  156.         <language>c</language>
  157.         <implementation>osrf_dbmath.so</implementation>
  158.         <unix_config>
  159.           <max_requests>1000</max_requests>
  160.           <unix_log>opensrf.dbmath_unix.log</unix_log>
  161.           <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
  162.           <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
  163.           <min_children>5</min_children>
  164.           <max_children>15</max_children>
  165.           <min_spare_children>2</min_spare_children>
  166.           <max_spare_children>5</max_spare_children>
  167.         </unix_config>
  168.       </opensrf.dbmath>
  169.  
  170.       <opensrf.settings>
  171.         <keepalive>1</keepalive>
  172.         <stateless>1</stateless>
  173.         <language>perl</language>
  174.         <implementation>OpenSRF::Application::Settings</implementation>
  175.         <max_requests>17</max_requests>
  176.         <unix_config>
  177.           <unix_sock>opensrf.settings_unix.sock</unix_sock>
  178.           <unix_pid>opensrf.settings_unix.pid</unix_pid>
  179.           <max_requests>1000</max_requests>
  180.           <unix_log>opensrf.settings_unix.log</unix_log>
  181.           <min_children>5</min_children>
  182.           <max_children>15</max_children>
  183.           <min_spare_children>3</min_spare_children>
  184.           <max_spare_children>5</max_spare_children>
  185.         </unix_config>
  186.       </opensrf.settings>
  187.  
  188.       <opensrf.validator>
  189.         <keepalive>1</keepalive>
  190.         <stateless>1</stateless>
  191.         <language>perl</language>
  192.         <implementation>OpenSRF::Application::Validator</implementation>
  193.         <max_requests>17</max_requests>
  194.         <unix_config>
  195.           <unix_sock>opensrf.validator_unix.sock</unix_sock>
  196.           <unix_pid>opensrf.validator_unix.pid</unix_pid>
  197.           <max_requests>1000</max_requests>
  198.           <unix_log>opensrf.validator_unix.log</unix_log>
  199.           <min_children>5</min_children>
  200.           <max_children>15</max_children>
  201.           <min_spare_children>3</min_spare_children>
  202.           <max_spare_children>5</max_spare_children>
  203.         </unix_config>
  204.         <app_settings>
  205.           <validators>
  206.             <emailaddress>
  207.               <modules>
  208.                 <a_regex>
  209.                     <implementation>OpenSRF::Application::Validator::EmailAddress::Regex</implementation>
  210.                 </a_regex>
  211.                 <b_dns>
  212.                     <implementation>OpenSRF::Application::Validator::EmailAddress::DNS</implementation>
  213.                     <check_mx_a>1</check_mx_a>
  214.                     <!-- Change this to a 1 to check for IPV6 records as well as IPV4 -->
  215.                     <check_aaaa>0</check_aaaa>
  216.                     <!-- Uncomment this to specify a resolve.conf-like config file for DNS lookups -->
  217.                     <!--<config_file>/path/to/file</config_file>-->
  218.                     <!-- A set of IPs to ignore - Useful when your DNS provider intercepts NXDOMAIN (say, OpenDNS) -->
  219.                     <ignore_ips>127.0.0.1,67.215.65.132</ignore_ips>
  220.                 </b_dns>
  221.               </modules>
  222.             </emailaddress>
  223.           </validators>
  224.         </app_settings>
  225.       </opensrf.validator>
  226.     </apps>
  227.   </default>
  228.  
  229.   <hosts>
  230.  
  231.     <localhost>
  232.       <!-- ^-=-
  233.        Should match the fully qualified domain name of the host.
  234.  
  235.        On Linux, the output of the following command is authoritative:
  236.        $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
  237.  
  238.        To use 'localhost' instead, run osrf_control with the 'localhost' flag
  239.      -->
  240.       <!-- List all of the apps this server will be running -->
  241.       <activeapps>
  242.         <appname>opensrf.persist</appname>
  243.         <appname>opensrf.settings</appname>
  244.         <appname>opensrf.math</appname>
  245.         <appname>opensrf.dbmath</appname>
  246.         <appname>opensrf.validator</appname>
  247.       </activeapps>
  248.  
  249.       <apps>
  250.  
  251. <!-- Example of an app-specific setting override -->
  252.         <opensrf.persist>
  253.           <app_settings>
  254.             <dbfile>/openils/var/persist-override.db</dbfile>
  255.           </app_settings>
  256.         </opensrf.persist>
  257.  
  258.       </apps>
  259.  
  260.     </localhost>
  261.  
  262.   </hosts>
  263.  
  264. </opensrf>
  265.  
  266. opensrf_core.xml Paste
  267.  
  268. <?xml version="1.0"?>
  269. <!--
  270. Example OpenSRF bootstrap configuration file for Evergreen
  271. -->
  272. <config>
  273.   <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
  274.   <opensrf>
  275.     <routers>
  276.  
  277.       <!-- define the list of routers our services will register with -->
  278.       <router>
  279.         <!--
  280.          This is the public router.  On this router, we only register
  281.          applications which should be accessible to everyone on the OpenSRF
  282.          network
  283.        -->
  284.         <name>router</name>
  285.         <domain>public.localhost</domain>
  286.  
  287.         <services>
  288.           <service>opensrf.math</service>
  289.           <service>open-ils.actor</service>
  290.           <service>open-ils.acq</service>
  291.           <service>open-ils.auth</service>
  292.           <service>open-ils.auth_proxy</service>
  293.           <service>open-ils.booking</service>
  294.           <service>open-ils.cat</service>
  295.           <service>open-ils.circ</service>
  296.           <service>open-ils.collections</service>
  297.           <service>open-ils.fielder</service>
  298.           <service>open-ils.pcrud</service>
  299.           <service>open-ils.permacrud</service>
  300.           <service>open-ils.reporter</service>
  301.           <service>open-ils.resolver</service>
  302.           <service>open-ils.search</service>
  303.           <service>open-ils.supercat</service>
  304.           <service>open-ils.url_verify</service>
  305.           <service>open-ils.vandelay</service>
  306.           <service>open-ils.serial</service>
  307.         </services>
  308.       </router>
  309.  
  310.       <router>
  311.         <!--
  312.          This is the private router.  All applications must register with
  313.          this router, so no explicit <services> section is required
  314.        -->
  315.         <name>router</name>
  316.         <domain>private.localhost</domain>
  317.       </router>
  318.     </routers>
  319.  
  320.     <!-- Our domain should match that of the private router -->
  321.     <domain>private.localhost</domain>
  322.     <username>opensrf</username>
  323.     <passwd>willett</passwd>
  324.     <port>5222</port>
  325.  
  326.     <!--
  327.      Name of the router used on our private domain.  
  328.      This should match one of the <name> of the private router above.
  329.     -->
  330.     <router_name>router</router_name>
  331.  
  332.     <logfile>/openils/log/osrfsys.log</logfile>
  333.     <!--
  334.      <logfile>syslog</logfile>
  335.      <syslog>local0</syslog>
  336.      <actlog>local1</actlog>
  337.     -->
  338.     <loglevel>4</loglevel>
  339.     <settings_config>/openils/conf/opensrf.xml</settings_config>
  340.   </opensrf>
  341.   <!--
  342.    The section between <gateway>...</gateway> is a standard OpenSRF C
  343.    stack configuration file
  344.  -->
  345.   <gateway>
  346.     <client>true</client>
  347.     <router_name>router</router_name>
  348.  
  349.     <!-- The gateway connects to the public domain for security -->
  350.     <domain>public.localhost</domain>
  351.  
  352.     <!-- This section will be soon deprecated for multi-domain mode... -->
  353.     <services>
  354.       <service>opensrf.math</service>
  355.       <service>opensrf.dbmath</service>
  356.       <service>open-ils.cat</service>
  357.       <service>open-ils.search</service>
  358.       <service>open-ils.circ</service>
  359.       <service>open-ils.actor</service>
  360.       <service>open-ils.auth</service>
  361.       <service>open-ils.auth_proxy</service>
  362.       <service>open-ils.collections</service>
  363.       <service>open-ils.reporter</service>
  364.     </services>
  365.  
  366.     <!-- jabber login info -->
  367.     <username>opensrf</username>
  368.     <passwd>willett</passwd>
  369.     <port>5222</port>
  370.     <loglevel>4</loglevel>
  371.     <logfile>/openils/log/gateway.log</logfile>
  372.     <!--
  373.      <logfile>syslog</logfile>
  374.      <syslog>local6</syslog>
  375.      <actlog>local1</actlog>
  376.    -->
  377.   </gateway>
  378.   <!-- ======================================================================================== -->
  379.   <routers>
  380.     <router>
  381.       <!-- public router -->
  382.       <trusted_domains>
  383.         <!--
  384.          Allow private services to register with this router
  385.          and public client to send requests to this router.
  386.        -->
  387.         <server>private.localhost</server>
  388.  
  389.         <!--
  390.          Also allow private clients to send to the router so it
  391.          can receive error messages
  392.        -->
  393.         <client>private.localhost</client>
  394.         <client>public.localhost</client>
  395.  
  396.       </trusted_domains>
  397.       <transport>
  398.         <server>public.localhost</server>
  399.         <port>5222</port>
  400.     <unixpath>/openils/sock/unix_sock</unixpath>
  401.         <username>router</username>
  402.         <password>willett</password>
  403.         <resource>router</resource>
  404.         <connect_timeout>10</connect_timeout>
  405.         <max_reconnect_attempts>5</max_reconnect_attempts>
  406.       </transport>
  407.       <logfile>/openils/log/router-public.log</logfile>
  408.       <!--
  409.        <logfile>syslog</logfile>
  410.        <syslog>local2</syslog>
  411.      -->
  412.       <loglevel>2</loglevel>
  413.     </router>
  414.     <router>
  415.       <!-- private router -->
  416.       <trusted_domains>
  417.         <server>private.localhost</server>
  418.         <!--
  419.          Only clients on the private domain can send requests to this router
  420.         -->
  421.         <client>private.localhost</client>
  422.       </trusted_domains>
  423.       <transport>
  424.         <server>private.localhost</server>
  425.         <port>5222</port>
  426.         <username>router</username>
  427.     <password>willett</password>
  428.         <resource>router</resource>
  429.         <connect_timeout>10</connect_timeout>
  430.         <max_reconnect_attempts>5</max_reconnect_attempts>
  431.       </transport>
  432.       <logfile>/openils/log/router-private.log</logfile>
  433.       <!--
  434.        <logfile>syslog</logfile>
  435.        <syslog>local2</syslog>
  436.      -->
  437.       <loglevel>2</loglevel>
  438.     </router>
  439.   </routers>
  440.   <!-- ======================================================================================== -->
  441.  
  442.   <!-- Any methods which match any of these match_string node values will    
  443.       have their params redacted from lower-level input logging.            
  444.       Adjust these examples as needed. -->      
  445.   <shared>
  446.     <log_protect>
  447.       <match_string>open-ils.auth.authenticate.verify</match_string>
  448.       <match_string>open-ils.auth.authenticate.complete</match_string>
  449.       <match_string>open-ils.auth_proxy.login</match_string>
  450.       <match_string>open-ils.actor.patron.password_reset.commit</match_string>
  451.       <match_string>open-ils.actor.user.password</match_string>
  452.       <match_string>open-ils.actor.user.username</match_string>
  453.       <match_string>open-ils.actor.user.email</match_string>
  454.       <match_string>open-ils.actor.patron.update</match_string>
  455.       <match_string>open-ils.cstore.direct.actor.user.create</match_string>
  456.       <match_string>open-ils.cstore.direct.actor.user.update</match_string>
  457.       <match_string>open-ils.cstore.direct.actor.user.delete</match_string>
  458.       <match_string>open-ils.search.z3950.apply_credentials</match_string>
  459.     </log_protect>
  460.   </shared>
  461. </config>
  462.  
  463. srfsh.xml Paste
  464.  
  465. <?xml version="1.0"?>
  466. <!-- This file follows the standard bootstrap config file layout found in opensrf_core.xml -->
  467. <srfsh>
  468.   <router_name>router</router_name>
  469.   <domain>private.localhost</domain>
  470.   <username>opensrf</username>
  471.   <passwd>willett</passwd>
  472.   <port>5222</port>
  473.   <logfile>/openils/var/log/srfsh.log</logfile>
  474.   <loglevel>4</loglevel>
  475.   <client>true</client>
  476. </srfsh>
RAW Paste Data