Trojan-worker

Route Trojan v2ray configs traffic through Cloudflare, in addition to vmess and vless.

MIT License

Stars
33

Introduction

🟢 Cloudflare has made it possible to run serverless configs and also access VPS configs via routing the traffic through the CDN. In this script, we attempt to allow Trojan VPS configs to be used via Cloudflare CDN as well.

Installation

  1. Login or Signup at https://dash.cloudflare.com and verify your email address.
  2. Head to Workers and Pages to create and name a worker.
  3. Click Edit Code code to enter the editing environment.
  4. Get the Latest version of the Trojan script, and copy the entire content.
  5. Paste the content of the script onto the mentioned step 3 javascript editing environment.
  6. Click Deploy located at top-right corner (Consider hitting Ctrl+S combo first if the Deploy button doesn't light up)
  7. Your Worker subscription URL will be https://{your_worker_address}.workers.dev/sub/{your_clean_ip}

Editing Source Links

🟡 You can add or change source subscription links over at subLinks in the initial part of the script. Both standard and base64 are supported.

🟡 Note that Vmess, Vless and Trojan configs with Websocket (WS), TLS and port 443 characteristics will be gathered.

Additional Notes

🟡 The base worker URL can fetch clean IPs via IRCF Space Repo, but it's still recommended to use Scanners.

🟡 To get a certain number of configs instead of all the parsed configs list, add '?n=xxx' to end of your subscription link, where xxx is the number of the configs you need to be displayed.

Stargazers

Badges
Extracted from project README
Version Download Stars
Related Projects