Skip to content

Commit

Permalink
support connection drop
Browse files Browse the repository at this point in the history
Inspired by NginxProxyManager#2942 (original NPM)
  • Loading branch information
Zoey2936 committed May 30, 2023
1 parent 677b30d commit cabf78f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/templates/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ server {
}
{%- endif %}

{%- if value == "444" %}
return 444;
{%- endif %}

{%- if value == "redirect" %}
location / {
include conf.d/include/acme-challenge.conf;
Expand Down
4 changes: 4 additions & 0 deletions frontend/js/app/settings/default-site/main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<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>
</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">
<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>
Expand Down
1 change: 1 addition & 0 deletions frontend/js/i18n/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@
"default-site": "Default Site",
"default-site-congratulations": "Congratulations Page",
"default-site-404": "404 Page",
"default-site-444": "Drop connection (444)",
"default-site-html": "Custom Page",
"default-site-redirect": "Redirect"
}
Expand Down

0 comments on commit cabf78f

Please sign in to comment.