Old nginx versions do not have proxy_force_ranges.

This commit is contained in:
Andrea Dell'Amico 2021-02-22 11:42:25 +01:00
parent e5df96b4b4
commit a2deb6bb15
1 changed files with 3 additions and 0 deletions

View File

@ -27,4 +27,7 @@ proxy_redirect {{ nginx_proxy_redirect }};
proxy_connect_timeout {{ nginx_proxy_connect_timeout }};
proxy_read_timeout {{ nginx_proxy_read_timeout }};
proxy_send_timeout {{ nginx_proxy_send_timeout }};
{% if ansible_distribution_version is version_compare('18.04', '>=') %}
proxy_force_ranges {{ nginx_proxy_force_ranges }};
{% endif %}