mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: strip warning from final config, improve help text
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user