@@ -16,9 +16,13 @@ A proxy tool based on Cloudflare Workers and Pages, supporting multiple protocol
1616- Support for Cloudflare Workers and Pages deployment
1717- Multiple UUID configuration support
1818- Custom proxy IP and port support
19- - SOCKS5 proxy support
19+ - SOCKS5 and HTTP proxy support
20+ - ** Trojan protocol support** with auto-detection
21+ - ** VLESS outbound proxy** with full UDP capability
22+ - ** Multi-proxy rotation** with automatic failover
2023- Automatic configuration subscription link
2124- URL query parameter configuration override support
25+ - Path-based proxy parameters (` /socks5:// ` , ` /http:// ` , ` /vless:// ` )
2226- Simple and easy deployment process
2327
2428## Quick Deployment
@@ -45,6 +49,10 @@ A proxy tool based on Cloudflare Workers and Pages, supporting multiple protocol
4549| ` PROXYIP ` | No | ` 1.1.1.1 ` or ` example.com ` <br >Multiple: ` 1.1.1.1:9443,2.2.2.2:8443 ` | Custom proxy IP and port |
4650| ` SOCKS5 ` | No | ` user:pass@host:port ` <br >Multiple: ` user1:pass1@host1:port1,user2:pass2@host2:port2 ` | SOCKS5 proxy configuration |
4751| ` SOCKS5_RELAY ` | No | ` true ` or ` false ` | Enable SOCKS5 traffic relay |
52+ | ` TROJAN_PASSWORD ` | No | ` your-password ` | Trojan password (defaults to UUID if not set) |
53+ | ` VLESS_OUTBOUND ` | No | ` vless://uuid@host:port?type=ws&security=tls ` | VLESS outbound proxy URL |
54+ | ` PROXY_TIMEOUT ` | No | ` 1500 ` | Proxy connection timeout in ms (default: 1500) |
55+ | ` PROXY_FALLBACK ` | No | ` true ` or ` false ` | Fallback to direct connection if proxies fail (default: true) |
4856
4957### URL Query Parameter Configuration
5058
@@ -54,7 +62,21 @@ You can use URL query parameters to directly override environment variable confi
5462| -----------------| -------------------| ---------| -------------|
5563| ` proxyip ` | ` PROXYIP ` | ` ?proxyip=1.1.1.1:443 ` | Override proxy IP and port |
5664| ` socks5 ` | ` SOCKS5 ` | ` ?socks5=user:pass@host:port ` | Override SOCKS5 proxy configuration |
57- | ` socks5_relay ` | ` SOCKS5_RELAY ` | ` ?socks5_relay=true ` | Override SOCKS5 relay setting |
65+ | ` http ` | - | ` ?http=user:pass@host:port ` | HTTP CONNECT proxy configuration |
66+ | ` vless ` | ` VLESS_OUTBOUND ` | ` ?vless=vless://uuid@host:port ` | Override VLESS outbound proxy |
67+ | ` globalproxy ` | - | ` ?globalproxy ` | Enable global proxy mode (route all traffic) |
68+
69+ ### Path-Based Proxy Parameters
70+
71+ You can also configure proxies directly in the URL path:
72+
73+ | Path Format | Example | Description |
74+ | -------------| ---------| -------------|
75+ | ` /proxyip= ` | ` /proxyip=1.1.1.1:443 ` | Set proxy IP via path |
76+ | ` /socks5:// ` | ` /socks5://user:pass@host:port ` | SOCKS5 proxy via path |
77+ | ` /http:// ` | ` /http://user:pass@host:port ` | HTTP CONNECT proxy via path |
78+ | ` /vless:// ` | ` /vless://uuid@host:port?... ` | VLESS outbound via path |
79+ | ` /gvless= ` | ` /gvless=base64-encoded-url ` | VLESS outbound (global, base64 encoded) |
5880
5981> ** Security Note** : UUID must be set via environment variables or configuration files, not through URL parameters, to prevent unauthorized identity modifications.
6082
@@ -158,6 +180,41 @@ https://sub.xf.free.hr/auto
158180
159181## Advanced Configuration
160182
183+ ### Trojan Protocol Support
184+
185+ EDtunnel now supports Trojan protocol alongside VLESS, with auto-detection:
186+
187+ - Default password uses UUID if ` TROJAN_PASSWORD ` is not set
188+ - Trojan subscription URLs are generated automatically on the configuration page
189+ - Access Trojan configuration at ` /sub/[uuid] `
190+
191+ ### HTTP Proxy Support
192+
193+ As an alternative to SOCKS5, you can use HTTP CONNECT proxy:
194+
195+ ``` bash
196+ # Via URL path
197+ https://your-domain.workers.dev/http://user:pass@proxy-host:port/sub/uuid
198+
199+ # Via URL parameter
200+ https://your-domain.workers.dev/? http=user:pass@proxy-host:port
201+ ```
202+
203+ ### VLESS Outbound Proxy
204+
205+ Route traffic through an external VLESS server with full UDP support:
206+
207+ ``` bash
208+ # Environment variable
209+ VLESS_OUTBOUND=vless://uuid@remote-server:443? type=ws& security=tls& path=/ws
210+
211+ # Via URL path
212+ https://your-domain.workers.dev/vless://uuid@host:port? type=ws& security=tls/sub/your-uuid
213+
214+ # Via URL parameter
215+ https://your-domain.workers.dev/? vless=vless://uuid@host:port
216+ ```
217+
161218### Multiple UUID Support
162219
163220You can configure multiple UUIDs in these ways:
@@ -222,6 +279,23 @@ Enable SOCKS5 global relay:
222279SOCKS5_RELAY=true
223280```
224281
282+ ### Multi-Proxy Rotation and Fallback
283+
284+ When configuring multiple proxy addresses, the system provides:
285+
286+ - ** Random rotation** : Automatically selects from available proxies
287+ - ** Connection timeout** : Configurable via ` PROXY_TIMEOUT ` (default: 1500ms)
288+ - ** Automatic failover** : Tries next proxy on failure
289+ - ** Direct fallback** : Falls back to direct connection if all proxies fail (configurable via ` PROXY_FALLBACK ` )
290+
291+ ``` bash
292+ # Configure timeout (milliseconds)
293+ PROXY_TIMEOUT=2000
294+
295+ # Disable fallback to direct connection
296+ PROXY_FALLBACK=false
297+ ```
298+
225299Notes:
226300
227301- Ensure proxy servers are stable and available
0 commit comments