server { access_log /var/log/nginx/twitch.zzls.xyz.access.log; error_log /var/log/nginx/twitch.zzls.xyz.error.log; server_name twitch.zzls.xyz twitch.nadeko.net; include configs/general.conf; include configs/security.conf; include configs/robotsNone.conf; location / { add_header Content-Type text/plain; return 200 "Twitch Russia Proxy for TTVLOL V1"; } location ~ ^/(?!$) { proxy_pass http://twitchproxy; include configs/proxy.conf; } # QUIC include configs/http3.conf; listen 443 ssl; http2 on; } server { set $x ""; if ($host = twitch.zzls.xyz) { set $x 1; } if ($host = twitch.nadeko.net) { set $x 1; } if ($x = 1) { return 301 https://$host$request_uri; } listen 80; server_name twitch.zzls.xyz twitch.nadeko.net; }