add proxy_intercept_errors parameter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-05-22 21:40:03 +02:00
parent 02c8e0a745
commit d48a80aaf6
2 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,7 @@ nginx_vhosts_default:
# proxy_read_timeout: 3600s
# proxy_send_timeout: 3600s
# proxy_headers: []
# proxy_intercept_errors: "off"
# custom_options:
# - 'deny: all'
# error_page: /usr/share/nginx/html

View File

@ -63,6 +63,9 @@ server {
{% if location.proxy_send_timeout is defined and location.proxy_send_timeout %}
proxy_send_timeout {{ location.proxy_send_timeout }};
{% endif %}
{% if location.proxy_intercept_errors is defined and location.proxy_intercept_errors %}
proxy_intercept_errors {{ location.proxy_intercept_errors }};
{% endif %}
{% if location.proxy_headers is defined and location.proxy_headers %}
{% for pheader in location.proxy_headers %}