2021-09-04 21:12:10 +07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
|
2014-10-13 10:05:19 +07:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Documentation of this file format can be found at: -->
|
2020-10-31 05:53:36 +07:00
|
|
|
<!-- https://www.eclipse.org/jetty/documentation/current/ -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- -->
|
|
|
|
<!-- Additional configuration files are available in $JETTY_HOME/etc -->
|
|
|
|
<!-- and can be mixed in. See start.ini file for the default -->
|
|
|
|
<!-- configuration files. -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- For a description of the configuration mechanism, see the -->
|
|
|
|
<!-- output of: -->
|
|
|
|
<!-- java -jar start.jar -? -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure a Jetty Server instance with an ID "Server" -->
|
|
|
|
<!-- Other configuration files may also configure the "Server" -->
|
|
|
|
<!-- ID, in which case they are adding configuration to the same -->
|
|
|
|
<!-- instance. If other configuration have a different ID, they -->
|
|
|
|
<!-- will create and configure another instance of Jetty. -->
|
|
|
|
<!-- Consult the javadoc of o.e.j.server.Server for all -->
|
|
|
|
<!-- configuration that may be set here. -->
|
|
|
|
<!-- =============================================================== -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
2020-10-31 05:53:36 +07:00
|
|
|
<Arg name="threadpool"><Ref refid="threadPool"/></Arg>
|
2014-10-13 10:05:19 +07:00
|
|
|
|
2020-10-31 05:53:36 +07:00
|
|
|
<Call name="addBean">
|
|
|
|
<Arg><Ref refid="byteBufferPool"/></Arg>
|
|
|
|
</Call>
|
2014-10-13 10:05:19 +07:00
|
|
|
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Add shared Scheduler instance -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Call name="addBean">
|
|
|
|
<Arg>
|
2020-10-31 05:53:36 +07:00
|
|
|
<New class="org.eclipse.jetty.util.thread.ScheduledExecutorScheduler">
|
|
|
|
<Arg name="name"><Property name="jetty.scheduler.name"/></Arg>
|
|
|
|
<Arg name="daemon" type="boolean"><Property name="jetty.scheduler.daemon" default="false" /></Arg>
|
|
|
|
<Arg name="threads" type="int"><Property name="jetty.scheduler.threads" default="-1" /></Arg>
|
|
|
|
</New>
|
2016-07-08 15:40:24 +07:00
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Http Configuration. -->
|
|
|
|
<!-- This is a common configuration instance used by all -->
|
|
|
|
<!-- connectors that can carry HTTP semantics (HTTP, HTTPS, etc.)-->
|
|
|
|
<!-- It configures the non wire protocol aspects of the HTTP -->
|
|
|
|
<!-- semantic. -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- This configuration is only defined here and is used by -->
|
|
|
|
<!-- reference from other XML files such as jetty-http.xml, -->
|
|
|
|
<!-- jetty-https.xml and other configuration files which -->
|
|
|
|
<!-- instantiate the connectors. -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- Consult the javadoc of o.e.j.server.HttpConfiguration -->
|
|
|
|
<!-- for all configuration that may be set here. -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
|
|
|
|
<Set name="secureScheme"><Property name="jetty.httpConfig.secureScheme" default="https" /></Set>
|
|
|
|
<Set name="securePort"><Property name="jetty.httpConfig.securePort" deprecated="jetty.secure.port" default="@ADEMPIERE_SSL_PORT@" /></Set>
|
|
|
|
<Set name="outputBufferSize"><Property name="jetty.httpConfig.outputBufferSize" deprecated="jetty.output.buffer.size" default="32768" /></Set>
|
|
|
|
<Set name="outputAggregationSize"><Property name="jetty.httpConfig.outputAggregationSize" deprecated="jetty.output.aggregation.size" default="8192" /></Set>
|
|
|
|
<Set name="requestHeaderSize"><Property name="jetty.httpConfig.requestHeaderSize" deprecated="jetty.request.header.size" default="8192" /></Set>
|
|
|
|
<Set name="responseHeaderSize"><Property name="jetty.httpConfig.responseHeaderSize" deprecated="jetty.response.header.size" default="8192" /></Set>
|
|
|
|
<Set name="sendServerVersion"><Property name="jetty.httpConfig.sendServerVersion" deprecated="jetty.send.server.version" default="true" /></Set>
|
|
|
|
<Set name="sendDateHeader"><Property name="jetty.httpConfig.sendDateHeader" deprecated="jetty.send.date.header" default="false" /></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="headerCacheSize"><Property name="jetty.httpConfig.headerCacheSize" default="1024" /></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="delayDispatchUntilContent"><Property name="jetty.httpConfig.delayDispatchUntilContent" deprecated="jetty.delayDispatchUntilContent" default="true"/></Set>
|
|
|
|
<Set name="maxErrorDispatches"><Property name="jetty.httpConfig.maxErrorDispatches" default="10"/></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="persistentConnectionsEnabled"><Property name="jetty.httpConfig.persistentConnectionsEnabled" default="true"/></Set>
|
2021-09-04 21:12:10 +07:00
|
|
|
<Set name="httpCompliance"><Call class="org.eclipse.jetty.http.HttpCompliance" name="from"><Arg><Property name="jetty.httpConfig.compliance" deprecated="jetty.http.compliance" default="RFC7230"/></Arg></Call></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="requestCookieCompliance"><Call class="org.eclipse.jetty.http.CookieCompliance" name="valueOf"><Arg><Property name="jetty.httpConfig.requestCookieCompliance" deprecated="jetty.httpConfig.cookieCompliance" default="RFC6265"/></Arg></Call></Set>
|
|
|
|
<Set name="responseCookieCompliance"><Call class="org.eclipse.jetty.http.CookieCompliance" name="valueOf"><Arg><Property name="jetty.httpConfig.responseCookieCompliance" default="RFC6265"/></Arg></Call></Set>
|
|
|
|
<Set name="relativeRedirectAllowed"><Property name="jetty.httpConfig.relativeRedirectAllowed" default="false"/></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
</New>
|
2014-10-13 10:05:19 +07:00
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- Set the default handler structure for the Server -->
|
|
|
|
<!-- A handler collection is used to pass received requests to -->
|
|
|
|
<!-- both the ContextHandlerCollection, which selects the next -->
|
|
|
|
<!-- handler by context path and virtual host, and the -->
|
|
|
|
<!-- DefaultHandler, which handles any requests not handled by -->
|
|
|
|
<!-- the context handlers. -->
|
|
|
|
<!-- Other handlers may be added to the "Handlers" collection, -->
|
|
|
|
<!-- for example the jetty-requestlog.xml file adds the -->
|
|
|
|
<!-- RequestLogHandler after the default handler -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="handler">
|
|
|
|
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
|
|
|
<Set name="handlers">
|
|
|
|
<Array type="org.eclipse.jetty.server.Handler">
|
|
|
|
<Item>
|
|
|
|
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
|
|
|
</Item>
|
|
|
|
<Item>
|
|
|
|
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
|
|
|
</Item>
|
|
|
|
</Array>
|
|
|
|
</Set>
|
|
|
|
</New>
|
|
|
|
</Set>
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- extra server options -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<!-- =========================================================== -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="stopAtShutdown"><Property name="jetty.server.stopAtShutdown" default="true"/></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="stopTimeout"><Property name="jetty.server.stopTimeout" default="5000"/></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="dumpAfterStart"><Property name="jetty.server.dumpAfterStart" deprecated="jetty.dump.start" default="false"/></Set>
|
|
|
|
<Set name="dumpBeforeStop"><Property name="jetty.server.dumpBeforeStop" deprecated="jetty.dump.stop" default="false"/></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
|
|
|
|
<!-- IDEMPIERE-2761 -->
|
|
|
|
<Set class="org.eclipse.jetty.util.resource.Resource" name="defaultUseCaches">false</Set>
|
|
|
|
|
2021-09-04 21:12:10 +07:00
|
|
|
<Call class="org.eclipse.jetty.webapp.Configurations" name="setServerDefault">
|
|
|
|
<Arg>
|
|
|
|
<Ref refid="Server"/>
|
|
|
|
</Arg>
|
|
|
|
<Call name="add">
|
|
|
|
<Arg name="configClass">
|
|
|
|
<Array type="String">
|
|
|
|
<Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.WebAppConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.ServletsConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.JspConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.JaasConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.JndiConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.webapp.JmxConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.osgi.annotations.AnnotationConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.websocket.server.config.JettyWebSocketConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.websocket.javax.server.config.JavaxWebSocketConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.osgi.boot.OSGiWebInfConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.osgi.boot.OSGiMetaInfConfiguration</Item>
|
|
|
|
</Array>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
</Call>
|
2020-10-31 05:53:36 +07:00
|
|
|
|
|
|
|
<!-- for jndi -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<Call class="java.lang.System" name="setProperty">
|
|
|
|
<Arg>java.naming.factory.initial</Arg>
|
|
|
|
<Arg><Property name="java.naming.factory.initial" default="org.eclipse.jetty.jndi.InitialContextFactory"/></Arg>
|
|
|
|
</Call>
|
|
|
|
<Call class="java.lang.System" name="setProperty">
|
|
|
|
<Arg>java.naming.factory.url.pkgs</Arg>
|
|
|
|
<Arg><Property name="java.naming.factory.url.pkgs" default="org.eclipse.jetty.jndi"/></Arg>
|
|
|
|
</Call>
|
2017-07-06 19:42:56 +07:00
|
|
|
</Configure>
|