28 lines
579 B
Plaintext
28 lines
579 B
Plaintext
server {
|
|
root /var/www/html;
|
|
index index.html index.htm index.nginx-debian.html;
|
|
include configs/general.conf;
|
|
include configs/security.conf;
|
|
|
|
server_name selfhost.zzls.xyz;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# QUIC
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
listen 443 ssl default_server;
|
|
listen 443 quic default_server;
|
|
http2 on;
|
|
include configs/ssl.conf;
|
|
}
|
|
server {
|
|
if ($host = selfhost.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
listen 80;
|
|
server_name selfhost.zzls.xyz;
|
|
}
|