From 7cdb8ea27c017fd056edfea056114b5329f8248a Mon Sep 17 00:00:00 2001 From: Shannon Mitchell Date: Wed, 5 Feb 2020 13:09:28 -0600 Subject: [PATCH] Fix paging link protocol when behind haproxy When using the designate public endpoint through haproxy, designate is returning a paging link with the incorrect protocol. This change is to make sure designate configurs oslo_middleware to parse the X-Forwarded-Proto header set by haproxy. Change-Id: Ia3288ccfc655a2814c36204a5cb381d3aa57e53e Closes-Bug: #1713663 --- templates/designate.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/designate.conf.j2 b/templates/designate.conf.j2 index eda22ad..f883f4c 100644 --- a/templates/designate.conf.j2 +++ b/templates/designate.conf.j2 @@ -441,6 +441,12 @@ connection = mysql+pymysql://{{ designate_galera_user }}:{{ designate_galera_pas # of the state_path setting. #lock_path = $state_path +################################# +## Oslo Middleware Configuration +################################# +[oslo_middleware] +enable_proxy_headers_parsing = true + ######################## ## Coordination ########################