Skip to content

Commit

Permalink
servers: allow unset RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS
Browse files Browse the repository at this point in the history
Otherwise the following exception will happen if proxy_protocol is enabled:
jinja2.exceptions.UndefinedError: 'RUCIO_HTTPD_PROXY_PROTOCOL_EXCEPTIONS' is undefined
  • Loading branch information
rcarpa committed Dec 5, 2023
1 parent 528954f commit 9a2de89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rucio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand Down

0 comments on commit 9a2de89

Please sign in to comment.