ansible-roles/jetty-apache/templates/jetty-setuid.xml.j2

23 lines
1.0 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- =============================================================== -->
<!-- Configure the Jetty SetUIDServer -->
<!-- this configuration file should be used in combination with -->
<!-- other configuration files. e.g. -->
<!-- java -jar start.jar etc/jetty-setuid.xml etc/jetty.xml -->
<!-- =============================================================== -->
<Configure id="Server" class="org.mortbay.setuid.SetUIDServer">
<Set name="startServerAsPrivileged">false</Set>
<Set name="umask">2</Set>
<Set name="uid">{{ jetty.user }}</Set>
<Set name="gid">{{ jetty.group }}</Set>
<Call name="setRLimitNoFiles">
<Arg>
<New class="org.mortbay.setuid.RLimit">
<Set name="soft">{{ jetty.open_files }}</Set>
<Set name="hard">{{ jetty.open_files }}</Set>
</New>
</Arg>
</Call>
</Configure>