{"id":24822985,"url":"https://github.com/6kmfi6hp/edtunnel","last_synced_at":"2025-05-13T17:11:17.209Z","repository":{"id":256627769,"uuid":"855673676","full_name":"6Kmfi6HP/EDtunnel","owner":"6Kmfi6HP","description":"EDtunnel 是一个基于 Cloudflare Workers 和 Pages 的代理工具，支持多种协议和配置选项。  EDtunnel is a proxy tool based on Cloudflare Workers and Pages, supporting multiple protocols and configuration options.","archived":false,"fork":false,"pushed_at":"2025-03-04T06:33:50.000Z","size":3405,"stargazers_count":2081,"open_issues_count":75,"forks_count":4989,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-11T22:18:43.776Z","etag":null,"topics":["cloudflare","cloudflare-pages","cloudflare-workers","edtunnel","nodejs","v2ray","vless","xray"],"latest_commit_sha":null,"homepage":"https://cfworker.edtunnel.best/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/6Kmfi6HP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T09:15:25.000Z","updated_at":"2025-04-11T06:55:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e263ca3-77f4-4165-a05c-06fecb30a809","html_url":"https://github.com/6Kmfi6HP/EDtunnel","commit_stats":null,"previous_names":["6kmfi6hp/edtunnel"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6Kmfi6HP%2FEDtunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6Kmfi6HP%2FEDtunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6Kmfi6HP%2FEDtunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6Kmfi6HP%2FEDtunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6Kmfi6HP","download_url":"https://codeload.github.com/6Kmfi6HP/EDtunnel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250530840,"owners_count":21445868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-pages","cloudflare-workers","edtunnel","nodejs","v2ray","vless","xray"],"created_at":"2025-01-30T19:26:10.720Z","updated_at":"2025-04-23T23:27:01.442Z","avatar_url":"https://github.com/6Kmfi6HP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EDtunnel\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/6Kmfi6HP/EDtunnel/refs/heads/main/image/logo.png\" alt=\"edgetunnel\" style=\"margin-bottom: -50px;\"\u003e\n\u003c/p\u003e\n\nEDtunnel 是一个基于 Cloudflare Workers 和 Pages 的代理工具，支持多种协议和配置选项。\n\nEDtunnel is a proxy tool based on Cloudflare Workers and Pages, supporting multiple protocols and configuration options.\n\n[![Repository](https://img.shields.io/badge/View%20on-GitHub-blue.svg)](https://github.com/6Kmfi6HP/EDtunnel)\n[![Telegram](https://img.shields.io/badge/Discuss-Telegram-blue.svg)](https://t.me/edtunnel)\n\n## ✨ 特性 | Features\n\n- 支持 Cloudflare Workers 和 Pages 部署\n- 支持多 UUID 配置\n- 支持自定义代理 IP 和端口\n- 支持 SOCKS5 代理\n- 提供自动配置订阅链接\n- 简单易用的部署流程\n\n- Support for Cloudflare Workers and Pages deployment\n- Multiple UUID configuration support\n- Custom proxy IP and port support\n- SOCKS5 proxy support\n- Automatic configuration subscription link\n- Simple and easy deployment process\n\n## 🚀 快速部署 | Quick Deployment\n\n### 在 Pages.dev 部署 | Deploy on Pages.dev\n\n1. 观看部署教程视频 | Watch deployment tutorial video：\n   [YouTube Tutorial](https://www.youtube.com/watch?v=8I-yTNHB0aw)\n\n2. 克隆此仓库并在 Cloudflare Pages 中部署 | Clone this repository and deploy in Cloudflare Pages\n\n### 在 Worker.dev 部署 | Deploy on Worker.dev\n\n1. 从[这里](https://github.com/6Kmfi6HP/EDtunnel/blob/main/_worker.js)复制 `_worker.js` 代码 | Copy `_worker.js` code from [here](https://github.com/6Kmfi6HP/EDtunnel/blob/main/_worker.js)\n\n2. 或者点击下方按钮一键部署 | Or click the button below to deploy directly:\n\n   [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/6Kmfi6HP/EDtunnel)\n\n## ⚙️ 配置说明 | Configuration Guide\n\n### 环境变量配置 | Environment Variables\n\n| 变量名 (Variable) | 是否必需 (Required) | 示例 (Example) | 说明 (Description) |\n|------------------|-------------------|---------------|-------------------|\n| `UUID` | 否 (No) | 单个 (Single): `12345678-1234-1234-1234-123456789012`\u003cbr\u003e多个 (Multiple): `uuid1,uuid2,uuid3` | 用户识别码 / User identification |\n| `PROXYIP` | 否 (No) | `1.1.1.1` 或 (or) `example.com`\u003cbr\u003e多个 (Multiple): `1.1.1.1:9443,2.2.2.2:8443` | 自定义代理IP和端口 / Custom proxy IP and port |\n| `SOCKS5` | 否 (No) | `user:pass@host:port`\u003cbr\u003e多个 (Multiple): `user1:pass1@host1:port1,user2:pass2@host2:port2` | SOCKS5代理配置 / SOCKS5 proxy configuration |\n| `SOCKS5_RELAY` | 否 (No) | `true` 或 (or) `false` | 启用SOCKS5流量转发 / Enable SOCKS5 traffic relay |\n\n### 非443端口配置 | Non-443 Port Configuration\n\n1. 访问 (Visit) `https://proxyip.edtunnel.best/`\n2. 输入 (Enter) `ProxyIP:proxyport` 并点击检查 (and click Check)\n3. 当显示 (When showing) `Proxy IP: true` 时可用 (it's available)\n4. 在 Worker 中配置 (Configure in Worker): `PROXYIP=211.230.110.231:50008`\n\n注意：带端口的代理IP可能在某些仅支持HTTP的Cloudflare站点上无效。\nNote: Proxy IPs with ports may not work on HTTP-only Cloudflare sites.\n\n### UUID 配置方法 | UUID Configuration\n\n#### 方法一 | Method 1\n在 `wrangler.toml` 文件中设置（不推荐在公共仓库中使用）\nSet in `wrangler.toml` file (not recommended for public repositories)\n\n```toml\n[vars]\nUUID = \"your-uuid-here\"\n```\n\n#### 方法二 | Method 2\n在 Cloudflare Dashboard 的环境变量中设置（推荐方式）\nSet in Cloudflare Dashboard environment variables (recommended method)\n\n## ⚠️ 重要提示：多项配置分隔符 | Important Note: Multiple Configuration Separator\n\n所有多项配置必须使用英文逗号(,)分隔，不能使用中文逗号(，)\nAll multiple configurations MUST use English comma(,) as separator, NOT Chinese comma(，)\n\n✅ 正确示例 | Correct Examples:\n```bash\n# UUID多个配置 | Multiple UUID\nUUID=uuid1,uuid2,uuid3\n\n# SOCKS5多个代理 | Multiple SOCKS5 proxies\nSOCKS5=192.168.1.1:1080,192.168.1.2:1080\n\n# PROXYIP多个地址 | Multiple PROXYIP\nPROXYIP=1.1.1.1:443,2.2.2.2:443\n```\n\n❌ 错误示例 | Wrong Examples:\n```bash\n# 错误：使用中文逗号 | Wrong: Using Chinese comma\nUUID=uuid1，uuid2，uuid3\n\n# 错误：使用中文逗号 | Wrong: Using Chinese comma\nSOCKS5=192.168.1.1:1080，192.168.1.2:1080\n```\n\n## 📱 快速使用 | Quick Start\n\n### 自动配置订阅 | Auto Configuration Subscribe\n\n使用以下链接获取自动配置 | Use the following link for auto configuration:\n```\nhttps://sub.xf.free.hr/auto\n```\n\n### 查看配置 | View Configuration\n\n- 访问您的域名 | Visit your domain: `https://your-domain.pages.dev`\n- 使用特定UUID | Use specific UUID: `/sub/[uuid]`\n- 查看完整配置 | View full configuration: 直接访问域名根路径 (visit domain root path)\n- 获取订阅内容 | Get subscription content: 访问 `/sub/[uuid]` (visit `/sub/[uuid]`)\n\n## 🔧 高级配置 | Advanced Configuration\n\n### 多UUID支持 | Multiple UUID Support\n\n您可以通过以下方式配置多个UUID | You can configure multiple UUIDs in these ways:\n\n1. 环境变量方式 | Via environment variables:\n   ```\n   UUID=uuid1,uuid2,uuid3\n   ```\n\n2. 配置文件方式 | Via configuration file:\n   ```toml\n   [vars]\n   UUID = \"uuid1,uuid2,uuid3\"\n   ```\n\n### SOCKS5代理配置 | SOCKS5 Proxy Configuration\n\n支持以下格式 | Supports the following formats:\n- 基础格式 | Basic format: `host:port`\n- 认证格式 | Authentication format: `username:password@host:port`\n- 多代理格式（使用英文逗号分隔）| Multiple proxies (separated by English comma): `proxy1,proxy2,proxy3`\n\n#### 配置示例 | Configuration Examples:\n\n1. 单个代理 | Single Proxy:\n```bash\n# 基础格式 | Basic format\nSOCKS5=192.168.1.1:1080\n\n# 带认证格式 | With authentication\nSOCKS5=user:pass@192.168.1.1:1080\n```\n\n2. 多个代理（使用英文逗号分隔）| Multiple Proxies (separated by English comma):\n```bash\n# 多个基础代理 | Multiple basic proxies\nSOCKS5=192.168.1.1:1080,192.168.1.2:1080,192.168.1.3:1080\n\n# 多个带认证代理 | Multiple proxies with authentication\nSOCKS5=user1:pass1@host1:port1,user2:pass2@host2:port2\n\n# 混合格式 | Mixed format\nSOCKS5=192.168.1.1:1080,user:pass@192.168.1.2:1080,192.168.1.3:1080\n```\n\n#### SOCKS5 代理负载均衡 | SOCKS5 Proxy Load Balancing\n\n当配置多个代理时，系统会自动进行负载均衡：\nWhen multiple proxies are configured, the system will automatically perform load balancing:\n\n- 随机选择 | Random selection\n- 自动故障转移 | Automatic failover\n- 支持混合认证方式 | Support mixed authentication methods\n\n#### SOCKS5_RELAY 设置 | SOCKS5_RELAY Settings\n\n启用 SOCKS5 全局转发 | Enable SOCKS5 global relay:\n```bash\nSOCKS5_RELAY=true\n```\n\n注意事项 | Notes:\n- 确保代理服务器稳定可用 | Ensure proxy servers are stable and available\n- 建议使用私有代理以提高安全性 | Recommend using private proxies for better security\n- 多代理配置时使用英文逗号分隔 | Use commas to separate multiple proxies\n- 支持动态添加和移除代理 | Support dynamic proxy addition and removal\n\n## 🚨 注意事项 | Notes\n\n- 带端口的代理IP可能在某些仅HTTP的Cloudflare站点上无效\n- 多UUID配置时使用英文逗号分隔\n- 建议通过环境变量设置敏感信息\n- 定期更新以获取最新功能和安全修复\n\n- Proxy IPs with ports may not work on HTTP-only Cloudflare sites\n- Use commas to separate multiple UUIDs\n- Recommend setting sensitive information via environment variables\n- Update regularly for latest features and security fixes\n\n## 🔧 环境变量设置 | Environment Variable Settings\n\n### Workers.dev 设置 | Workers.dev Settings\n在 Workers 设置页面配置环境变量 | Configure environment variables in Workers settings page\n![workers](image/image-1.png)\n\n### Pages.dev 设置 | Pages.dev Settings\n在 Pages 设置页面配置环境变量 | Configure environment variables in Pages settings page\n![pages](image/image-2.png)\n\n## 💬 获取帮助 | Get Help\n\n- Telegram 群组 | Telegram Group: [EDtunnel Group](https://t.me/edtunnel)\n- GitHub 仓库 | Repository: [EDtunnel](https://github.com/6Kmfi6HP/EDtunnel)\n- 问题反馈 | Issue Report: [创建新问题 | Create New Issue](https://github.com/6Kmfi6HP/EDtunnel/issues)\n- 功能建议 | Feature Request: [提交建议 | Submit Request](https://github.com/6Kmfi6HP/EDtunnel/discussions)\n\n## 📝 贡献指南 | Contributing\n\n欢迎提交 Pull Request 来改进项目！请确保：\nWelcome Pull Requests to improve the project! Please ensure:\n\n1. 代码符合项目规范 | Code follows project standards\n2. 添加必要的测试 | Add necessary tests\n3. 更新相关文档 | Update relevant documentation\n4. 描述清楚改动原因 | Clearly describe the reasons for changes\n\n## 📜 许可证 | License\n\n本项目采用 MIT 许可证 - 查看 [LICENSE](LICENSE) 文件了解详情\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Star History\n\n\u003ca href=\"https://star-history.com/#6Kmfi6HP/EDtunnel\u0026Date\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel\u0026type=Date\u0026theme=dark\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel\u0026type=Date\" /\u003e\n    \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel\u0026type=Date\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6kmfi6hp%2Fedtunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6kmfi6hp%2Fedtunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6kmfi6hp%2Fedtunnel/lists"}