mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
2dd4434ceb
The default nginx 444 response drops the inbound connection without sending any response to the client.
47 lines
997 B
Plaintext
47 lines
997 B
Plaintext
# ------------------------------------------------------------
|
|
# Default Site
|
|
# ------------------------------------------------------------
|
|
{% if value == "congratulations" %}
|
|
# Skipping output, congratulations page configration is baked in.
|
|
{%- else %}
|
|
server {
|
|
listen 80 default;
|
|
{% if ipv6 -%}
|
|
listen [::]:80 default;
|
|
{% else -%}
|
|
#listen [::]:80 default;
|
|
{% endif %}
|
|
server_name default-host.localhost;
|
|
access_log /data/logs/default-host_access.log combined;
|
|
error_log /data/logs/default-host_error.log warn;
|
|
{% include "_exploits.conf" %}
|
|
|
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
|
|
|
{%- if value == "404" %}
|
|
location / {
|
|
return 404;
|
|
}
|
|
{% endif %}
|
|
|
|
{%- if value == "444" %}
|
|
location / {
|
|
return 444;
|
|
}
|
|
{% endif %}
|
|
|
|
{%- if value == "redirect" %}
|
|
location / {
|
|
return 301 {{ meta.redirect }};
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "html" %}
|
|
root /data/nginx/default_www;
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
}
|
|
{% endif %}
|