From bff417a33aae7f8ae55298290f331eccff30d68d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 20 May 2021 14:57:37 +0200 Subject: [PATCH] fix handling of proxy_ignore_headers --- templates/etc/nginx/sites-available/vhost.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 6472210..605dd3e 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -94,9 +94,7 @@ server { {% endif %} {% if location.proxy_ignore_headers is defined and location.proxy_ignore_headers %} - {% for ignore in location.proxy_ignore_headers %} - proxy_ignore_header {{ ignore }}; - {% endfor %} + proxy_ignore_headers {{ ignore | join(" ") }}; {% endif %} {% endif %} {% if location.custom_options is defined and location.custom_options %}