Add missing X-Forwarded-Prot for extra_lb_tls_vip_addresses

This fixes a missing parameter for the extra_lb_tls_vip_addresses
feature introduced by change 705228.

Change-Id: I8fdbfd2100e84e6344f48c193e9430002102e5fa
This commit is contained in:
Magnus Bergman
2020-02-28 20:44:05 +01:00
parent e76e5ced6e
commit fc95fa8cdb

View File

@@ -66,7 +66,7 @@ frontend {{ item.service.haproxy_service_name }}-front-{{ loop.index }}
use_backend {{ value.backend_name | default(item.service.haproxy_service_name) }}-back if {{ key }}
{% endfor %}
{% endif %}
{% if (item.service.haproxy_ssl | default(false) | bool) and request_option == 'http' and (loop.index == 1 or item.service.haproxy_ssl_all_vips | default(false) | bool) %}
{% if (item.service.haproxy_ssl | default(false) | bool) and request_option == 'http' and (loop.index == 1 or vip_bind in extra_lb_tls_vip_addresses or item.service.haproxy_ssl_all_vips | default(false) | bool) %}
reqadd X-Forwarded-Proto:\ https
{% endif %}
mode {{ item.service.haproxy_balance_type }}