Add support for nginx 444 default response

The default nginx 444 response drops the inbound connection without
sending any response to the client.
This commit is contained in:
Will Rouesnel
2023-05-22 11:59:50 +10:00
parent 2a06384a4a
commit 2dd4434ceb
3 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,12 @@ server {
}
{% endif %}
{%- if value == "444" %}
location / {
return 444;
}
{% endif %}
{%- if value == "redirect" %}
location / {
return 301 {{ meta.redirect }};