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
|
|
|
|
2021-09-04 21:12:10 +07:00
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- Base SSL configuration -->
|
|
|
|
<!-- This configuration needs to be used together with 1 or more -->
|
|
|
|
<!-- of jetty-https.xml or jetty-http2.xml -->
|
|
|
|
<!-- ============================================================= -->
|
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
|
|
|
<!-- Add an SSL Connector with no protocol factories -->
|
2014-10-13 10:05:19 +07:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
|
|
|
<New id="sslConnector" class="org.eclipse.jetty.server.ServerConnector">
|
|
|
|
<Arg name="server"><Ref refid="Server" /></Arg>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Arg name="acceptors" type="int"><Property name="jetty.ssl.acceptors" deprecated="ssl.acceptors" default="-1"/></Arg>
|
|
|
|
<Arg name="selectors" type="int"><Property name="jetty.ssl.selectors" deprecated="ssl.selectors" default="-1"/></Arg>
|
2014-10-13 10:05:19 +07:00
|
|
|
<Arg name="factories">
|
|
|
|
<Array type="org.eclipse.jetty.server.ConnectionFactory">
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- uncomment to support proxy protocol
|
|
|
|
<Item>
|
|
|
|
<New class="org.eclipse.jetty.server.ProxyConnectionFactory"/>
|
|
|
|
</Item>-->
|
2014-10-13 10:05:19 +07:00
|
|
|
</Array>
|
|
|
|
</Arg>
|
|
|
|
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="host"><Property name="jetty.ssl.host" deprecated="jetty.host" default="@ADEMPIERE_APPS_SERVER@"/></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="port"><Property name="jetty.ssl.port" deprecated="ssl.port" default="@ADEMPIERE_SSL_PORT@" /></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="idleTimeout"><Property name="jetty.ssl.idleTimeout" deprecated="ssl.timeout" default="30000"/></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="acceptorPriorityDelta"><Property name="jetty.ssl.acceptorPriorityDelta" deprecated="ssl.acceptorPriorityDelta" default="0"/></Set>
|
|
|
|
<Set name="acceptQueueSize"><Property name="jetty.ssl.acceptQueueSize" deprecated="ssl.acceptQueueSize" default="0"/></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="reuseAddress"><Property name="jetty.ssl.reuseAddress" default="true"/></Set>
|
|
|
|
<Set name="acceptedTcpNoDelay"><Property name="jetty.ssl.acceptedTcpNoDelay" default="true"/></Set>
|
|
|
|
<Set name="acceptedReceiveBufferSize"><Property name="jetty.ssl.acceptedReceiveBufferSize" default="-1"/></Set>
|
|
|
|
<Set name="acceptedSendBufferSize"><Property name="jetty.ssl.acceptedSendBufferSize" default="-1"/></Set>
|
|
|
|
<Get name="SelectorManager">
|
|
|
|
<Set name="connectTimeout"><Property name="jetty.ssl.connectTimeout" default="15000"/></Set>
|
|
|
|
</Get>
|
2014-10-13 10:05:19 +07:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2016-07-08 15:40:24 +07:00
|
|
|
|
2014-10-13 10:05:19 +07:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Create a TLS specific HttpConfiguration based on the -->
|
|
|
|
<!-- common HttpConfiguration defined in jetty.xml -->
|
|
|
|
<!-- Add a SecureRequestCustomizer to extract certificate and -->
|
|
|
|
<!-- session information -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<New id="sslHttpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
|
|
|
|
<Arg><Ref refid="httpConfig"/></Arg>
|
|
|
|
<Call name="addCustomizer">
|
2016-07-08 15:40:24 +07:00
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.server.SecureRequestCustomizer">
|
2020-10-31 05:53:36 +07:00
|
|
|
<Arg name="sniRequired" type="boolean"><Property name="jetty.ssl.sniRequired" default="false"/></Arg>
|
2021-09-04 21:12:10 +07:00
|
|
|
<Arg name="sniHostCheck" type="boolean"><Property name="jetty.ssl.sniHostCheck" default="false"/></Arg>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Arg name="stsMaxAgeSeconds" type="int"><Property name="jetty.ssl.stsMaxAgeSeconds" default="-1"/></Arg>
|
|
|
|
<Arg name="stsIncludeSubdomains" type="boolean"><Property name="jetty.ssl.stsIncludeSubdomains" default="false"/></Arg>
|
2016-07-08 15:40:24 +07:00
|
|
|
</New>
|
|
|
|
</Arg>
|
2014-10-13 10:05:19 +07:00
|
|
|
</Call>
|
|
|
|
</New>
|
|
|
|
|
2020-10-31 05:53:36 +07:00
|
|
|
</Configure>
|