| <?xml version="1.0"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> |
| <Configure id="Server" class="org.eclipse.jetty.server.Server"> |
| <Arg name="threadPool"> |
| <New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> |
| <Set name="minThreads">5</Set> |
| <Set name="maxThreads">10</Set> |
| </New> |
| </Arg> |
| |
| <New id="httpsCfg" class="org.eclipse.jetty.server.HttpConfiguration"> |
| <Set name="secureScheme">https</Set> |
| <Set name="securePort"><SystemProperty name="IGNITE_JETTY_PORT" default="8080"/></Set> |
| <Set name="sendServerVersion">true</Set> |
| <Set name="sendDateHeader">true</Set> |
| <Call name="addCustomizer"> |
| <Arg><New class="org.eclipse.jetty.server.SecureRequestCustomizer"/></Arg> |
| </Call> |
| </New> |
| |
| <New id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory"> |
| <Set name="keyStorePath">modules/web-agent/src/test/resources/server.jks</Set> |
| <Set name="keyStorePassword">123456</Set> |
| <Set name="trustStorePath">modules/web-agent/src/test/resources/ca.jks</Set> |
| <Set name="trustStorePassword">123456</Set> |
| <Set name="needClientAuth">true</Set> |
| <Set name="includeCipherSuites"> |
| <Array type="java.lang.String"> |
| <Item>TLS_ECDHE_ECDSA_WITH_NULL_SHA</Item> |
| </Array> |
| </Set> |
| </New> |
| |
| <Call name="addConnector"> |
| <Arg> |
| <New class="org.eclipse.jetty.server.ServerConnector"> |
| <Arg name="server"> |
| <Ref refid="Server"/> |
| </Arg> |
| <Arg name="factories"> |
| <Array type="org.eclipse.jetty.server.ConnectionFactory"> |
| <Item> |
| <New class="org.eclipse.jetty.server.SslConnectionFactory"> |
| <Arg><Ref refid="sslContextFactory"/></Arg> |
| <Arg>http/1.1</Arg> |
| </New> |
| </Item> |
| <Item> |
| <New class="org.eclipse.jetty.server.HttpConnectionFactory"> |
| <Arg><Ref refid="httpsCfg"/></Arg> |
| </New> |
| </Item> |
| </Array> |
| </Arg> |
| <Set name="host"><SystemProperty name="IGNITE_JETTY_HOST" default="localhost"/></Set> |
| <Set name="port"><SystemProperty name="IGNITE_JETTY_PORT" default="8080"/></Set> |
| <Set name="idleTimeout">30000</Set> |
| <Set name="reuseAddress">true</Set> |
| </New> |
| </Arg> |
| </Call> |
| |
| <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> |
| </Array> |
| </Set> |
| </New> |
| </Set> |
| |
| <Set name="stopAtShutdown">false</Set> |
| </Configure> |