Skip to content

Commit

Permalink
add recursive_error_pages option
Browse files Browse the repository at this point in the history
  • Loading branch information
tombokombo committed Aug 14, 2023
1 parent 74b8ec8 commit 6bba4cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/openresty/conf.d/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% set _site_server_name = item.server_name %}
{% set _site_root_dir = item.root_dir %}
{% set _site_error_pages = item.error_pages %}
{% set _site_error_pages_recursive = item.error_pages_recursive %}
{% set _site_access_log = item.access_log %}

{% for server in item.servers | default([]) %}
Expand All @@ -25,6 +26,10 @@ server {
error_page {{ error }};
{% endfor %}

{% if _site_error_pages_recursive | default(false) %}
recursive_error_pages on;
{% endif %}

{% for location in server.locations | default([]) %}
{% if location.path is defined %}
location {{ location.path }} {
Expand Down

0 comments on commit 6bba4cb

Please sign in to comment.