From a5760cf3b77a8645024e92e4d0c3eca1b7f29e30 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Nov 2023 02:05:19 -0300 Subject: [PATCH] erm --- nginx/sites-enabled/twitch.zzls.xyz.conf | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 nginx/sites-enabled/twitch.zzls.xyz.conf diff --git a/nginx/sites-enabled/twitch.zzls.xyz.conf b/nginx/sites-enabled/twitch.zzls.xyz.conf new file mode 100644 index 0000000..5f8cf2e --- /dev/null +++ b/nginx/sites-enabled/twitch.zzls.xyz.conf @@ -0,0 +1,41 @@ +server { + access_log /var/log/nginx/twitch.zzls.xyz.access.log; + server_name twitch.zzls.xyz; + 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 PRO and streamlink-ttvlol. + + If you use TTVLOL PRO add `https://twitch.zzls.xyz` (without the ` chars) to the proxies list in the TTVLOL PRO Options. + If you use streamlink-ttvlol use `--twitch-proxy-playlist=https://twitch.zzls.xyz` as argument. + + This proxy is located in the US but it returns an ad free RU Playlist. This doesn't affects your playback speed or latency. + + Enjoy :3"; + + } + + location ~ ^/(?!$) { + proxy_pass http://127.0.0.1:9595; + include configs/proxy.conf; + } + + # QUIC + add_header Alt-Svc 'h3=":443"; ma=86400'; + + listen 443 ssl; + listen 443 quic; + http2 on; + include configs/ssl.conf; + +} +server { + if ($host = twitch.zzls.xyz) { + return 301 https://$host$request_uri; + } + listen 80; + server_name twitch.zzls.xyz; +}