Can define error_pages

This commit is contained in:
nemunaire 2023-05-09 18:38:09 +02:00
parent 441bdf0167
commit d5e6d8710d
2 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,4 @@
---
path: /
error_pages:
404: /err.html

View File

@ -26,7 +26,9 @@
chunked_transfer_encoding off;
proxy_pass https://storage_nemunaire/{{ bucket }}{{ path }}/;
error_page 404 /err.html;
{% for error_page in error_pages %}
error_page {{ error_page }} /{{ error_pages[error_page] }};
{% endfor %}
#try_files $uri $uri/index.html $uri.html =404;
}
location ~ /$ {