From ca76349e9f7c8aa9a6931222684b635a4096049c Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 13 May 2021 15:16:59 +0000 Subject: [PATCH] Use http-request set-header instead of reqadd This is needed for HAProxy 2.1 which is in Debian Bullseye Change-Id: I912c6d810acc137c3b3e73dc40160d6376cb3884 --- templates/service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/service.j2 b/templates/service.j2 index 841356c..4b40546 100644 --- a/templates/service.j2 +++ b/templates/service.j2 @@ -76,7 +76,7 @@ frontend {{ item.service.haproxy_service_name }}-front-{{ loop.index }} {% endfor %} {% endif %} {% 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 + http-request add-header X-Forwarded-Proto https {% endif %} mode {{ item.service.haproxy_balance_type }} {% if not item.service.haproxy_frontend_only | default(false) %}