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

62 lines
1.2 KiB
Plaintext

server {
server_name logs.zzls.xyz;
rewrite ^ https://logs.nadeko.net$request_uri? permanent;
include configs/ssl.conf;
listen 443 ssl;
}
server {
access_log /var/log/nginx/logs.zzls.xyz.log combined;
server_name logs.nadeko.net;
include configs/general.conf;
include configs/security.conf;
location / {
proxy_pass http://127.0.0.1:40003;
include configs/proxy.conf;
# location ~ ^/(channel/rubius|channelid/39276140)/ {
# return 401 "Los logs de Rubius han sido deshabilitados";
# }
# location ~ ^/(channel/ibai|channelid/83232866)/ {
# return 401 "Los logs de Ibai han sido deshabilitados";
# }
location ~* ^/(channel/.*/user/skybluecold|channelid/.*/user/skybluecold|channel/.*/userid/130372054|channelid/.*/userid/130372054){
return 401 "lol";
}
error_page 501 502 503 /50x.html;
proxy_intercept_errors on;
}
location = /50x.html {
root /var/www/logs;
index 50x.html;
}
# QUIC
include configs/http3.conf;
include configs/ssl.conf;
listen 443 ssl;
http2 on;
}
server {
set $x "";
if ($host = logs.zzls.xyz) {
set $x 1;
}
if ($host = logs.nadeko.net) {
set $x 1;
}
if ($x = 1) {
return 301 https://$host$request_uri;
}
listen 80;
server_name logs.zzls.xyz logs.nadeko.net;
return 404;
}