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

<!-- ================================================================ -->
<!-- Configure the Jetty SetUIDListener                               -->
<!-- ================================================================ -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <Call name="addEventListener">
    <Arg>
      <New class="org.eclipse.jetty.setuid.SetUIDListener">
        <Set name="startServerAsPrivileged">
          <Property name="jetty.setuid.startServerAsPrivileged" default="false" />
        </Set>
        <Set name="umaskOctal">
          <Property name="jetty.setuid.umask" default="002" />
        </Set>
        <Set name="username">
          <Property name="jetty.setuid.userName" default="jetty" />
        </Set>
        <Set name="groupname">
          <Property name="jetty.setuid.groupName" default="jetty" />
        </Set>
        <Set name="clearSupplementalGroups">
          <Property name="jetty.setuid.clearSupplementalGroups" default="false" />
        </Set>
        <!-- uncomment to change the limits on number of open file descriptors for root -->
        <!--
        <Call name="setRLimitNoFiles">
          <Arg>
            <New class="org.eclipse.jetty.setuid.RLimit">
              <Set name="soft">20000</Set>
              <Set name="hard">40000</Set>
            </New>
          </Arg>
        </Call>
        -->
      </New>
    </Arg>
  </Call>
</Configure>
