add custom_options to location blocks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-01-18 15:50:29 +01:00
parent 7e97e3e9ef
commit e29fda3571
2 changed files with 8 additions and 0 deletions

View File

@ -128,6 +128,8 @@ nginx_vhosts_default:
# proxy_read_timeout: 3600s
# proxy_send_timeout: 3600s
# proxy_headers: []
# custom_options:
# - 'deny: all'
# error_page: /usr/share/nginx/html
nginx_vhosts_extra: []

View File

@ -69,6 +69,12 @@ server {
{% endfor %}
{% endif %}
{% endif %}
{% if location.custom_options is defined and location.custom_options %}
{% for inline_option in location.custom_options %}
{{ inline_option }};
{% endfor %}
{% endif %}
}
{% endfor %}