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

35 lines
559 B
Plaintext

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