LP#1551090: Adding apache2-dev dependency to xenial and fixing whitespace
[OpenSRF.git] / examples / opensrf.xml.example
index b36769a..e637b10 100644 (file)
@@ -87,9 +87,12 @@ vim:et:ts=2:sw=2:
         <!-- Module the implements this application -->
         <implementation>OpenSRF::Application::Persist</implementation>
 
-        <!-- max stateful requests before a session automatically disconnects a client -->
+        <!-- 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>
 
@@ -133,7 +136,6 @@ vim:et:ts=2:sw=2:
         <stateless>1</stateless>
         <language>c</language>
         <implementation>osrf_math.so</implementation>
-        <max_requests>97</max_requests>
         <unix_config>
           <unix_sock>opensrf.math_unix.sock</unix_sock>
           <unix_pid>opensrf.math_unix.pid</unix_pid>
@@ -151,7 +153,6 @@ vim:et:ts=2:sw=2:
         <stateless>1</stateless>
         <language>c</language>
         <implementation>osrf_dbmath.so</implementation>
-        <max_requests>99</max_requests>
         <unix_config>
           <max_requests>1000</max_requests>
           <unix_log>opensrf.dbmath_unix.log</unix_log>
@@ -181,6 +182,45 @@ vim:et:ts=2:sw=2:
           <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>
 
@@ -191,9 +231,9 @@ vim:et:ts=2:sw=2:
         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();'
+        $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
 
-        To use 'localhost' instead, run osrf_ctl.sh with the -l flag
+        To use 'localhost' instead, run osrf_control with the 'localhost' flag
       -->
       <!-- List all of the apps this server will be running -->
       <activeapps>
@@ -201,6 +241,7 @@ vim:et:ts=2:sw=2:
         <appname>opensrf.settings</appname>
         <appname>opensrf.math</appname>
         <appname>opensrf.dbmath</appname>
+        <appname>opensrf.validator</appname>
       </activeapps>
 
       <apps>