Skip to content

Instantly share code, notes, and snippets.

@starkayc
Last active March 29, 2026 09:19
Show Gist options
  • Select an option

  • Save starkayc/c7d506e3e1ea89ee0c7cf06b2f8337a5 to your computer and use it in GitHub Desktop.

Select an option

Save starkayc/c7d506e3e1ea89ee0c7cf06b2f8337a5 to your computer and use it in GitHub Desktop.
Proxy Server to prevent Twitch Ads

Proxy Server to prevent Twitch Ads

Hello! This will teach you how to create a V1 & V2 Proxy for TTV LOL PRO or the likes of it. This guide assumes you already have a VPS instance setup already.

V1 Setup

  1. Download Luminous TTV by right clicking on the link that correlates to your system and clicking 'Copy link address' V1-Link

  2. Login to your server and type wget https://github.com/AlyoshaVasilieva/luminous-ttv/releases/download/v0.5.6/luminous-ttv-0.5.6-x86_64-unknown-linux-musl.zip into /home/user/bin and unzip the file. You should see 4 files but the important one being luminous-ttv.
    V1-ZIP

  3. Do sudo chmod +x luminous-ttv to make it executable.

  4. Now setup luminous-ttv as a service doing sudo systemctl edit --force --full luminous-ttv.service and add the block below replacing user with your user. Save the file using Ctrl + X then pressing Y then Enter if you're using nano.

[Unit]
Description=Luminous TTV
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=user
WorkingDirectory=/home/user/bin
LimitNOFILE=80000
ExecStart=/home/user/bin/luminous-ttv
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target
  1. Do sudo systemctl daemon-reload then sudo systemctl enable luminous-ttv.service && sudo systemctl start luminous-ttv.service and check logs with sudo journalctl -u luminous-ttv.service -e to make sure everything is working. V1-Logs

  2. The next step requires you to setup a reverse proxy and also a domain pointed at your server ip. Such as proxy.example.com pointing at 1.2.3.4. I'll be using Caddy as a reverse proxy in this guide.

  3. Follow Caddy Installation on how to install it on your server. After doing so do nano /etc/caddy/Caddyfile and replace the contents in it with the one below into the file. Save the file using Ctrl + X then pressing Y then Enter. Then reload the config using caddy reload --config /etc/caddy/Caddyfile. Check logs using sudo journalctl -u caddy -e to see if everything is working correctly. You should see it attempt to fetch a SSL certificate for your domain.

proxy.example.com {
    
        reverse_proxy localhost:9595

}
  1. To check if the proxy is online head to proxy.example.com/ping and it should show as {"online":true}.
    V1-Ping

  2. Now all that left is to install V1 TTV LOL PRO and insert https://proxy.example.com into the options page.
    V1-Options

Click on a stream and it should now show it's being proxied.
V1-Proxy

V2 Setup

  1. Download Hola Proxy by right clicking on the link that correlates to your system and clicking 'Copy link address' V2-Link

  2. Login to your server and type wget https://github.com/Snawoot/hola-proxy/releases/download/v1.11.1%2Boldwincompat2/hola-proxy.linux-amd64 into /home/user/bin. Change the name using mv hola-proxy.linux-amd64 hola-proxy.

  3. Do sudo chmod +x hola-proxy to make it executable.

  4. Now setup hola-proxy as a service doing sudo systemctl edit --force --full hola-proxy.service and add the block below replacing user with your user. Save the file using Ctrl + X then pressing Y then Enter if you're using nano.

[Unit]
Description=Hola VPN
Documentation=https://github.com/Snawoot/hola-proxy/

[Service]
EnvironmentFile=/home/user/.config/hola-proxy
ExecStart=/home/user/bin/hola-proxy $OPTIONS
TimeoutStopSec=5s

[Install]
WantedBy=default.target

Create file /home/user/.config/hola-proxy with content like this:

OPTIONS=-country ru -bind-address 0.0.0.0:2036 -hide-SNI=false
  1. Do sudo systemctl daemon-reload then sudo systemctl enable hola-proxy.service && sudo systemctl start hola-proxy.service and check logs with sudo journalctl -u hola-proxy.service -e to make sure everything is working. V2-Logs

  2. To check if the proxy is online head to serverip:2036 and it should show as Bad Request.
    V2-Ping

  3. Now all that left is to install V2 TTV LOL PRO and insert serverip:2036 into the options page. V2-Options

Click on a stream and it should now show it's being proxied.
V2-Proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment