<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <Set name="handler">
    <New class="org.eclipse.jetty.ee8.proxy.ConnectHandler">
      <Set name="handler">
        <New class="org.eclipse.jetty.ee8.servlet.ServletHandler">
          <Call id="proxyHolder" name="addServletWithMapping">
            <Arg><Property name="jetty.proxy.servletClass" default="org.eclipse.jetty.ee8.proxy.ProxyServlet"/></Arg>
            <Arg><Property name="jetty.proxy.servletMapping" default="/*"/></Arg>
            <Call name="setInitParameter">
              <Arg>maxThreads</Arg>
              <Arg><Property name="jetty.proxy.maxThreads" default="128" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>maxConnections</Arg>
              <Arg><Property name="jetty.proxy.maxConnections" default="256" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>idleTimeout</Arg>
              <Arg><Property name="jetty.proxy.idleTimeout" default="30000" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>timeout</Arg>
              <Arg><Property name="jetty.proxy.timeout" default="60000" /></Arg>
            </Call>
          </Call>
        </New>
      </Set>
    </New>
  </Set>

</Configure>
