mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
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:
parent
2a06384a4a
commit
2dd4434ceb
@ -24,6 +24,12 @@ server {
|
|||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{%- if value == "444" %}
|
||||||
|
location / {
|
||||||
|
return 444;
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- if value == "redirect" %}
|
{%- if value == "redirect" %}
|
||||||
location / {
|
location / {
|
||||||
return 301 {{ meta.redirect }};
|
return 301 {{ meta.redirect }};
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
<input class="custom-control-input" name="value" value="404" type="radio" required <%- value === '404' ? 'checked' : '' %>>
|
<input class="custom-control-input" name="value" value="404" type="radio" required <%- value === '404' ? 'checked' : '' %>>
|
||||||
<div class="custom-control-label"><%- i18n('settings', 'default-site-404') %></div>
|
<div class="custom-control-label"><%- i18n('settings', 'default-site-404') %></div>
|
||||||
</label>
|
</label>
|
||||||
|
<label class="custom-control custom-radio">
|
||||||
|
<input class="custom-control-input" name="value" value="444" type="radio" required <%- value === '444' ? 'checked' : '' %>>
|
||||||
|
<div class="custom-control-label"><%- i18n('settings', 'default-site-444') %></div>
|
||||||
|
</label>
|
||||||
<label class="custom-control custom-radio">
|
<label class="custom-control custom-radio">
|
||||||
<input class="custom-control-input" name="value" value="redirect" type="radio" required <%- value === 'redirect' ? 'checked' : '' %>>
|
<input class="custom-control-input" name="value" value="redirect" type="radio" required <%- value === 'redirect' ? 'checked' : '' %>>
|
||||||
<div class="custom-control-label"><%- i18n('settings', 'default-site-redirect') %></div>
|
<div class="custom-control-label"><%- i18n('settings', 'default-site-redirect') %></div>
|
||||||
|
@ -287,6 +287,7 @@
|
|||||||
"default-site": "Default Site",
|
"default-site": "Default Site",
|
||||||
"default-site-congratulations": "Congratulations Page",
|
"default-site-congratulations": "Congratulations Page",
|
||||||
"default-site-404": "404 Page",
|
"default-site-404": "404 Page",
|
||||||
|
"default-site-444": "No Response (444)",
|
||||||
"default-site-html": "Custom Page",
|
"default-site-html": "Custom Page",
|
||||||
"default-site-redirect": "Redirect"
|
"default-site-redirect": "Redirect"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user