mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Merge pull request #2942 from wrouesnel/444_default_support
Add support for nginx 444 default response
This commit is contained in:
commit
f38cb5b500
@ -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