2014-10-13 10:05:19 +07:00
|
|
|
<?xml version="1.0"?>
|
2016-07-08 15:40:24 +07:00
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
|
2014-10-13 10:05:19 +07:00
|
|
|
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- Base SSL configuration -->
|
|
|
|
<!-- This configuration needs to be used together with 1 or more -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<!-- 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">
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Add a SSL Connector with no protocol factories -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<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>
|
|
|
|
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="host"><Property name="jetty.ssl.host" deprecated="jetty.host" default="@ADEMPIERE_APPS_SERVER@" /></Set>
|
|
|
|
<Set name="port"><Property name="jetty.ssl.port" deprecated="ssl.port" default="@ADEMPIERE_SSL_PORT@" /></Set>
|
|
|
|
<Set name="idleTimeout"><Property name="jetty.ssl.idleTimeout" deprecated="ssl.timeout" default="123000"/></Set>
|
|
|
|
<Set name="soLingerTime"><Property name="jetty.ssl.soLingerTime" deprecated="ssl.soLingerTime" default="-1"/></Set>
|
|
|
|
<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>
|
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">
|
|
|
|
<Arg type="boolean"><Property name="jetty.ssl.sniHostCheck" default="true"/></Arg>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
2014-10-13 10:05:19 +07:00
|
|
|
</Call>
|
|
|
|
</New>
|
|
|
|
|
2016-07-08 15:40:24 +07:00
|
|
|
</Configure>
|