ilscipio/scipio-erp

View on GitHub
framework/catalina/scipio-component.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<ofbiz-component name="catalina"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
    <resource-loader name="main" type="component"/>
    <classpath type="dir" location="config"/>
    <classpath type="jar" location="lib/*"/>
    <classpath type="jar" location="build/lib/*"/>
    <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>

    <container name="catalina-container" loaders="main" class="org.ofbiz.catalina.container.CatalinaContainer">
        <!-- configuration for the Tomcat server -->
        <property name="use-naming" value="false"/>
        <property name="debug" value="0"/>
        <property name="catalina-runtime-home" value="runtime/catalina"/>
        <property name="apps-context-reloadable" value="false"/>
        <property name="apps-cross-context" value="false"/>
        <property name="apps-distributable" value="false"/><!-- you must also set all the webapps you want distributable, by adding <distributable/> in their web.xml file -->
        <!-- configuration of the Tomcat service that hosts OFBiz applications: the service has one engine and one or more connectors -->
        <property name="default-server" value="engine">
            <property name="default-host" value="0.0.0.0"/>
            <property name="jvm-route" value="jvm1"/>
            <property name="access-log-pattern">
                <property-value>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"</property-value>
            </property>
            <property name="access-log-rotate" value="true"/>
            <property name="access-log-prefix" value="access_log."/>
            <property name="access-log-dir" value="runtime/logs"/>
            <!-- uncomment for cluster support
            <property name="default-server-cluster" value="cluster">
                <property name="rep-valve-filter">
                <property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.png;.*\.css;.*\.ico;.*\.htc;</property-value>
                </property>
                <property name="manager-class" value="org.apache.catalina.ha.session.DeltaManager"/>
                <property name="debug" value="5"/>
                <property name="replication-mode" value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
                <property name="tcp-listen-host" value="auto"/>
                <property name="tcp-listen-port" value="4001"/>
                <property name="tcp-sector-timeout" value="100"/>
                <property name="tcp-thread-count" value="6"/>
                <property name="mcast-bind-addr" value="192.168.2.1"/>
                <property name="mcast-addr" value="228.0.0.4"/>
                <property name="mcast-port" value="45564"/>
                <property name="mcast-freq" value="500"/>
                <property name="mcast-drop-time" value="3000"/>
            </property>
            -->
            <!-- <property name="ssl-accelerator-port" value="8443"/> -->
            <property name="enable-cross-subdomain-sessions" value="false"/>
        </property>
        <property name="ajp-connector" value="connector">
            <!-- see http://tomcat.apache.org/tomcat-8.0-doc/config/ajp.html for reference -->
            <!--<property name="address" value=""/>-->
            <property name="port" value="8009"/>
            <property name="protocol" value="AJP/1.3"/>
            <property name="scheme" value="http"/>
            <property name="secure" value="false"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="secretRequired" value="false"/><!-- SCIPIO: Starting Tomcat 9.0.31, "requiredSecret" was renamed to "secret" and a new "secretRequired" is true by default -->
            <!-- AJP/13 connector attributes -->
            <!-- commented out because the values match the Tomcat defaults:
            <property name="tomcatAuthentication" value="true"/>
            <property name="allowTrace" value="false"/>
            <property name="enableLookups" value="false"/>
            <property name="maxPostSize" value="2097152"/>
            <property name="noCompressionUserAgents" value=""/>
            <property name="connectionLinger" value="-1"/>
            <property name="connectionTimeout" value="60000"/>
            <property name="maxHttpHeaderSize" value="8192"/>
            <property name="maxKeepAliveRequests" value="100"/>
            <property name="maxThreads" value="200"/>
            <property name="minSpareThreads" value="10"/>
            <property name="acceptCount" value="100"/>
            <property name="restrictedUserAgents" value=""/>
            <property name="socketBuffer" value="9000"/>
            <property name="tcpNoDelay" value="true"/>
            <property name="threadPriority" value="5"/>
            -->
        </property>
        <property name="http-connector" value="connector">
            <!-- see http://tomcat.apache.org/tomcat-8.0-doc/config/http.html for reference -->
            <!--<property name="address" value=""/>-->
            <property name="port" value="8080"/>
            <property name="protocol" value="HTTP/1.1"/>
            <property name="scheme" value="http"/>
            <property name="secure" value="false"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="compression" value="on"/>
            <property name="compressibleMimeType" value="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"/>
            <!-- commented out because the values match the Tomcat defaults:
            <property name="allowTrace" value="false"/>
            <property name="enableLookups" value="false"/>
            <property name="maxPostSize" value="2097152"/>
            <property name="noCompressionUserAgents" value=""/>
            <property name="connectionLinger" value="-1"/>
            <property name="connectionTimeout" value="60000"/>
            <property name="maxHttpHeaderSize" value="8192"/>
            <property name="maxKeepAliveRequests" value="100"/>
            <property name="maxThreads" value="200"/>
            <property name="minSpareThreads" value="10"/>
            <property name="acceptCount" value="100"/>
            <property name="restrictedUserAgents" value=""/>
            <property name="socketBuffer" value="9000"/>
            <property name="tcpNoDelay" value="true"/>
            <property name="threadPriority" value="5"/>
            -->
        </property>
        <property name="https-connector" value="connector">
            <!-- see http://tomcat.apache.org/tomcat-8.0-doc/config/http.html for reference -->
            <!--<property name="address" value=""/>-->
            <property name="port" value="8443"/>
            <property name="protocol" value="HTTP/1.1"/>
            <property name="scheme" value="https"/>
            <property name="secure" value="true"/>
            <property name="SSLEnabled" value="true"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="compression" value="on"/>
            <property name="compressibleMimeType" value="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"/>
            <!-- SSL connector attributes -->
            <property name="sslImplementationName" value="org.apache.tomcat.util.net.jsse.JSSEImplementation"/>
            <property name="algorithm" value="SunX509"/>
            <!-- the clientAuth to "want" in order to receive certs from the client;
                note that this isn't set this way by default because with certain browsers
                (like Safari) it breaks access via HTTPS, so until that problem is fixed
                the default will be false
            <property name="clientAuth" value="false"/>
            -->
            <property name="keystoreFile" value="framework/base/config/ofbizssl.jks"/>
            <property name="keystoreType" value="JKS"/>
            <property name="keyAlias" value="ofbiz"/>
            <property name="keyPass" value="changeit"/>
        </property>
    </container>
    <container name="catalina-container-test" loaders="test" class="org.ofbiz.catalina.container.CatalinaContainer">
        <!-- static configuration for tomcat -->
        <property name="use-naming" value="false"/>
        <property name="debug" value="0"/>
        <property name="catalina-runtime-home" value="runtime/catalina"/>
        <property name="apps-context-reloadable" value="false"/>
        <property name="apps-cross-context" value="false"/>
        <property name="apps-distributable" value="false"/><!-- you must also set all the webapps you want distributable, by adding <distributable/> in their web.xml file -->
        <!-- one or more tomcat engines (servers); map to this + host -->
        <property name="default-server" value="engine">
            <property name="default-host" value="0.0.0.0"/>
            <property name="jvm-route" value="jvm1"/>
            <property name="access-log-pattern">
                <property-value>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"</property-value>
            </property>
            <property name="access-log-rotate" value="true"/>
            <property name="access-log-prefix" value="access_log."/>
            <property name="access-log-dir" value="runtime/logs"/>
            <property name="enable-request-dump" value="false"/>
        </property>
        <property name="ajp-connector" value="connector">
            <!--<property name="address" value=""/>-->
            <property name="port" value="8010"/>
            <property name="protocol" value="AJP/1.3"/>
            <property name="scheme" value="http"/>
            <property name="secure" value="false"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="secretRequired" value="false"/><!-- SCIPIO: Starting Tomcat 9.0.31, "requiredSecret" was renamed to "secret" and a new "secretRequired" is true by default -->
        </property>
        <property name="http-connector" value="connector">
            <!--<property name="address" value=""/>-->
            <property name="port" value="8080"/>
            <property name="protocol" value="HTTP/1.1"/>
            <property name="scheme" value="http"/>
            <property name="secure" value="false"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="compression" value="on"/>
            <property name="compressibleMimeType" value="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"/>
        </property>
        <property name="https-connector" value="connector">
            <!--<property name="address" value=""/>-->
            <property name="port" value="8443"/>
            <property name="protocol" value="HTTP/1.1"/>
            <property name="scheme" value="https"/>
            <property name="secure" value="true"/>
            <property name="SSLEnabled" value="true"/>
            <property name="URIEncoding" value="UTF-8"/>
            <property name="xpoweredBy" value="false"/>
            <property name="compression" value="on"/>
            <property name="compressibleMimeType" value="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"/>
            <property name="sslImplementationName" value="org.apache.tomcat.util.net.jsse.JSSEImplementation"/>
            <property name="algorithm" value="SunX509"/>
            <property name="keystoreFile" value="framework/base/config/ofbizssl.jks"/>
            <property name="keystorePass" value="changeit"/>
            <property name="keystoreType" value="JKS"/>
        </property>
    </container>
    <!--
        <webapp name="catalina-root"
                title="ROOT"
                server="default-server"
                location="webapp/ROOT"
                mount-point="/"
                app-bar-display="false"/>
    -->
</ofbiz-component>