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

33 lines
543 B
Text
Raw Normal View History

2023-12-21 15:17:35 -03:00
server {
2023-12-21 16:06:15 -03:00
access_log /var/log/nginx/status.zzls.xyz.log combined;
server_name status.zzls.xyz;
include configs/general.conf;
include configs/security.conf;
2023-12-21 15:17:35 -03:00
2023-12-21 16:06:15 -03:00
location / {
2024-01-14 04:14:30 -03:00
proxy_pass http://status;
2023-12-21 16:06:15 -03:00
include configs/proxy.conf;
}
2023-12-21 15:17:35 -03:00
2023-12-21 16:06:15 -03:00
# QUIC
include configs/http3.conf;
2023-12-21 15:17:35 -03:00
2023-12-21 16:06:15 -03:00
listen 443 ssl;
http2 on;
2023-12-21 15:17:35 -03:00
}
server {
2024-01-10 01:04:45 -03:00
set $x "";
2023-12-21 16:06:15 -03:00
if ($host = status.zzls.xyz) {
2024-01-10 01:04:45 -03:00
set $x 1;
}
if ($host = status.nadeko.net) {
set $x 1;
}
if ($x = 1) {
2023-12-21 16:06:15 -03:00
return 301 https://$host$request_uri;
}
listen 80;
2024-01-10 01:04:45 -03:00
server_name status.zzls.xyz status.nadeko.net;
2023-12-21 15:17:35 -03:00
}