mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 15:33:32 +00:00
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
# ------------------------------------------------------------
|
|
# Default Site
|
|
# ------------------------------------------------------------
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
listen 443 ssl default_server;
|
|
listen [::]:443 ssl default_server;
|
|
|
|
listen 443 quic reuseport default_server;
|
|
listen [::]:443 quic reuseport default_server;
|
|
more_set_headers 'Alt-Svc: h3=":443"; ma=86400';
|
|
|
|
server_name _;
|
|
|
|
include conf.d/include/brotli.conf;
|
|
include conf.d/include/force-tls.conf;
|
|
include conf.d/include/tls-ciphers.conf;
|
|
include conf.d/include/acme-challenge.conf;
|
|
include conf.d/include/block-exploits.conf;
|
|
|
|
#ssl_certificate ;
|
|
#ssl_certificate_key ;
|
|
#ssl_trusted_certificate ;
|
|
|
|
{%- if value == "404" %}
|
|
location / {
|
|
include conf.d/include/acme-challenge.conf;
|
|
root /html/404;
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "444" %}
|
|
return 444;
|
|
{%- endif %}
|
|
|
|
{%- if value == "redirect" %}
|
|
location / {
|
|
include conf.d/include/acme-challenge.conf;
|
|
return 307 {{ meta.redirect }};
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "congratulations" %}
|
|
location / {
|
|
include conf.d/include/acme-challenge.conf;
|
|
root /html/default;
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "html" %}
|
|
location / {
|
|
include conf.d/include/acme-challenge.conf;
|
|
root /data/etc/html;
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
}
|