Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/surfboardv2ray/trojan-worker

Route Trojan v2ray configs traffic through Cloudflare, in addition to vmess and vless.
https://github.com/surfboardv2ray/trojan-worker

cdn cf cloudflare cloudflare-workers trojan trojan-worker v2ray vless vmess worker

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        


Trojan Worker


Access Trojan configs using Cloudflare CDN.


English 🇬🇧 | 🇮🇷 فارسی


> [!TIP]
> New UPDATE! Cloudflare Pages is supported, [download here](https://github.com/Surfboardv2ray/Trojan-worker/releases/latest/download/PAGES.zip)

[![Version](https://img.shields.io/github/v/release/surfboardv2ray/Trojan-worker?label=Version&color=blue)](https://github.com/surfboardv2ray/Trojan-worker/releases/latest)
[![Download](https://img.shields.io/github/downloads/surfboardv2ray/Trojan-worker/total?label=Downloads)](https://github.com/surfboardv2ray/Trojan-worker/releases/latest)
[![Stars](https://img.shields.io/github/stars/surfboardv2ray/Trojan-worker?style=flat&label=Stars&color=tomato
)](https://github.com/surfboardv2ray/Trojan-worker)

## 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](https://github.com/Surfboardv2ray/Trojan-worker/releases/latest/download/worker.js), 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](https://github.com/ircfspace/cf2dns/blob/master/list/ipv4.json), but it's still recommended to use [Scanners](https://ircf.space/scanner.html).

🟡 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.

![0](./assets/redline.gif)


html.jpg

![0](./assets/redline.gif)

## Stargazers
[![Stargazers over time](https://starchart.cc/Surfboardv2ray/Trojan-worker.svg?variant=adaptive)](https://starchart.cc/Surfboardv2ray/Trojan-worker)