net/haproxy: remove chroot GUI option, always enable chroot

This commit is contained in:
Frank Wall
2016-06-14 11:44:38 +02:00
parent 89666126e1
commit d1b102cc1b
3 changed files with 0 additions and 12 deletions
@@ -24,12 +24,6 @@
<help><![CDATA[Enable or disable HAProxy running as root.<br/><div class="text-info"><b>NOTE:</b> Enabling root could be a security issue but it's required by some feature.</div>]]></help>
<advanced>true</advanced>
</field>
<field>
<id>haproxy.general.tuning.chroot</id>
<label>Secure mode (chroot)</label>
<type>checkbox</type>
<help><![CDATA[Enable or disable HAProxy's chroot feature.]]></help>
</field>
<field>
<id>haproxy.general.tuning.nbproc</id>
<label>HAProxy processes</label>
@@ -14,10 +14,6 @@
<default>0</default>
<Required>Y</Required>
</root>
<chroot type="BooleanField">
<default>1</default>
<Required>Y</Required>
</chroot>
<maxConnections type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>500000</MaximumValue>
@@ -446,9 +446,7 @@ global
uid 80
{% endif %}
gid 80
{% if OPNsense.HAProxy.general.tuning.chroot == "1" %}
chroot /var/run/haproxy
{% endif %}
daemon
stats socket /var/run/haproxy.socket level admin
nbproc {{OPNsense.HAProxy.general.tuning.nbproc}}