61 lines
1.3 KiB
Text
61 lines
1.3 KiB
Text
# ------------------------------------------------------------
|
|
# 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/always.conf;
|
|
|
|
ssl_certificate ;
|
|
ssl_certificate_key ;
|
|
#ssl_stapling_file ;
|
|
|
|
{%- if value == "404" %}
|
|
location / {
|
|
include conf.d/include/always.conf;
|
|
root /html/404deadpage;
|
|
error_page 404 /404deadpage.html;
|
|
return 404;
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "444" %}
|
|
return 444;
|
|
{%- endif %}
|
|
|
|
{%- if value == "redirect" %}
|
|
location / {
|
|
include conf.d/include/always.conf;
|
|
return 307 {{ meta.redirect }};
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "congratulations" %}
|
|
location / {
|
|
include conf.d/include/always.conf;
|
|
root /html/default;
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
|
|
{%- if value == "html" %}
|
|
location / {
|
|
include conf.d/include/always.conf;
|
|
root /data/etc/html;
|
|
try_files $uri /index.html;
|
|
}
|
|
{%- endif %}
|
|
}
|