mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Merge pull request #15 from fraenki/haproxy_xfwd
net/haproxy: fix option to add X-Forwarded-For header
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= haproxy
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_COMMENT= Reliable, high performance TCP/HTTP load balancer
|
||||
PLUGIN_DEPENDS= haproxy
|
||||
PLUGIN_MAINTAINER= opnsense@moov.de
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: opnsense-haproxy
|
||||
version: 1.1
|
||||
version: 1.2
|
||||
origin: opnsense/haproxy
|
||||
comment: load balancer
|
||||
desc: Reliable, high performance TCP/HTTP load balancer
|
||||
|
||||
@@ -554,6 +554,9 @@ frontend {{frontend.name}}
|
||||
{% if frontend.defaultBackend|default("") != "" %}
|
||||
{% set backend_data = helpers.getUUID(frontend.defaultBackend) %}
|
||||
default_backend {{backend_data.name}}
|
||||
{% endif %}
|
||||
{% if frontend.forwardFor == '1' %}
|
||||
option forwardfor
|
||||
{% endif %}
|
||||
# tuning options
|
||||
{% if frontend.tuning_maxConnections is defined %}
|
||||
|
||||
Reference in New Issue
Block a user