net/haproxy: strip warning from final config, improve help text

This commit is contained in:
Frank Wall
2021-03-02 16:33:07 +01:00
parent d43edc0f5f
commit e3ad6447b3
2 changed files with 2 additions and 2 deletions
@@ -7,7 +7,7 @@
<id>haproxy.general.tuning.root</id>
<label>Run as root</label>
<type>checkbox</type>
<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>
<help><![CDATA[Enable or disable HAProxy running as user root. Enabling this option is strongly discouraged.<br/><div class="text-info"><b>NOTE:</b> Running as user root could be a security issue but it may be required by some features.</div>]]></help>
<advanced>true</advanced>
</field>
<field>
@@ -836,8 +836,8 @@ userlist {{object.name | regex_replace ("[^A-Za-z0-9]","")}}
{#- ############################### -#}
global
{# # NOTE: Running as root could be a security issue, but is required for some features. #}
{% if OPNsense.HAProxy.general.tuning.root != "1" %}
# NOTE: Could be a security issue, but required for some feature.
uid 80
{% endif %}
gid 80