etc-configs/nginx/conf.d/selfhost.zzls.xyz.conf

29 lines
470 B
Plaintext

server {
root /var/www/html;
index index.html;
include configs/general.conf;
include configs/robotsNone.conf;
include configs/security.conf;
server_name selfhost.zzls.xyz;
location / {
try_files $uri $uri/ =404;
}
# QUIC
include configs/http3.conf;
listen 443 ssl 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;
}