etc-configs/nginx/conf.d/status.zzls.xyz.conf
2024-01-14 04:14:30 -03:00

32 lines
543 B
Text

server {
access_log /var/log/nginx/status.zzls.xyz.log combined;
server_name status.zzls.xyz;
include configs/general.conf;
include configs/security.conf;
location / {
proxy_pass http://status;
include configs/proxy.conf;
}
# QUIC
include configs/http3.conf;
listen 443 ssl;
http2 on;
}
server {
set $x "";
if ($host = status.zzls.xyz) {
set $x 1;
}
if ($host = status.nadeko.net) {
set $x 1;
}
if ($x = 1) {
return 301 https://$host$request_uri;
}
listen 80;
server_name status.zzls.xyz status.nadeko.net;
}