mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: align global options for improved readability
This commit is contained in:
@@ -994,9 +994,9 @@ global
|
||||
{% do logging.append('len ' ~ OPNsense.HAProxy.general.logging.length) if OPNsense.HAProxy.general.logging.length|default("") != "" %}
|
||||
{% do logging.append(OPNsense.HAProxy.general.logging.facility) %}
|
||||
{% do logging.append(OPNsense.HAProxy.general.logging.level) if OPNsense.HAProxy.general.logging.level|default("") != "" %}
|
||||
log {{logging|join(' ')}}
|
||||
log {{logging|join(' ')}}
|
||||
{# # lua scripts #}
|
||||
lua-prepend-path /tmp/haproxy/lua/?.lua
|
||||
lua-prepend-path /tmp/haproxy/lua/?.lua
|
||||
{% if helpers.exists('OPNsense.HAProxy.luas.lua') %}
|
||||
{% for lua in helpers.toList('OPNsense.HAProxy.luas.lua') %}
|
||||
{% if lua.enabled == '1' and lua.preload|default('') == '1' %}
|
||||
@@ -1007,7 +1007,7 @@ global
|
||||
{% set lua_filename = lua.id %}
|
||||
{% endif %}
|
||||
# lua script: {{lua.name}}
|
||||
lua-load /tmp/haproxy/lua/{{lua_filename}}.lua
|
||||
lua-load /tmp/haproxy/lua/{{lua_filename}}.lua
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user