From 9a2de89d4293791b05aa32a4d8c5abf411484354 Mon Sep 17 00:00:00 2001 From: Radu Carpa Date: Tue, 5 Dec 2023 12:41:39 +0100 Subject: [PATCH] servers: allow unset RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS Otherwise the following exception will happen if proxy_protocol is enabled: jinja2.exceptions.UndefinedError: 'RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS' is undefined --- server/rucio.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/rucio.conf.j2 b/server/rucio.conf.j2 index 98f98cb..815ec52 100644 --- a/server/rucio.conf.j2 +++ b/server/rucio.conf.j2 @@ -98,7 +98,7 @@ CacheRoot /tmp {% if RUCIO_HTTPD_PROXY_PROTOCOL_ENABLED | default('False') == 'True' %} RemoteIPProxyProtocol On - RemoteIPProxyProtocolExceptions 127.0.0.1 ::1 {{ RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS }} + RemoteIPProxyProtocolExceptions 127.0.0.1 ::1 {{ RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS | default('') }} {% endif %} {% if RUCIO_HTTPD_GRID_SITE_ENABLED | default('False') == 'True' %}