Merge pull request #15 from fraenki/haproxy_xfwd

net/haproxy: fix option to add X-Forwarded-For header
This commit is contained in:
Ad Schellevis 2016-05-31 15:33:03 +02:00
commit d94d9fffa8
3 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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 %}