🚀 GitHub 增强代理服务

支持代理 GitHub 页面、Raw 文件和 API 接口

🎯 支持的代理类型

1. Raw 文件代理

用途:代理 GitHub 仓库中的原始文件

# 原始链接 https://raw.githubusercontent.com/lidachui1998/my-TVBOX/refs/heads/main/本地仓.txt # 代理链接(新格式) https://your-worker.workers.dev/raw/lidachui1998/my-TVBOX/refs/heads/main/本地仓.txt # 代理链接(兼容旧格式) https://your-worker.workers.dev/lidachui1998/my-TVBOX/refs/heads/main/本地仓.txt

2. GitHub 页面代理

用途:代理 GitHub 网站页面,可以浏览仓库

# 原始链接 https://github.com/lidachui1998/my-TVBOX # 代理链接 https://your-worker.workers.dev/github/lidachui1998/my-TVBOX

3. GitHub API 代理

用途:代理 GitHub API 接口

# 原始链接 https://api.github.com/repos/lidachui1998/my-TVBOX # 代理链接 https://your-worker.workers.dev/api/repos/lidachui1998/my-TVBOX

✨ 功能特性

🚀 全面代理:支持 GitHub 页面、Raw 文件、API 接口
💾 智能缓存:自动缓存内容,提高访问速度
🌍 CORS 支持:支持跨域请求,方便前端调用
📁 多格式支持:支持 txt、json、xml、jar、js 等多种文件格式
🔗 链接替换:自动替换 HTML 页面中的 GitHub 链接
🔒 安全可靠:只代理公开内容,不存储敏感信息

📝 使用示例

TVBOX 配置文件:

# 使用 Raw 文件代理 https://your-worker.workers.dev/raw/lidachui1998/my-TVBOX/refs/heads/main/本地仓.txt

浏览 GitHub 仓库:

# 浏览仓库主页 https://your-worker.workers.dev/github/lidachui1998/my-TVBOX # 浏览特定文件 https://your-worker.workers.dev/github/lidachui1998/my-TVBOX/blob/main/README.md

API 调用示例:

// 获取仓库信息 fetch('https://your-worker.workers.dev/api/repos/lidachui1998/my-TVBOX') .then(response => response.json()) .then(data => console.log(data)); // 获取文件列表 fetch('https://your-worker.workers.dev/api/repos/lidachui1998/my-TVBOX/contents') .then(response => response.json()) .then(files => console.log(files));

JAR 包和二进制文件:

# JAR 包下载 https://your-worker.workers.dev/raw/username/repo/main/app.jar # JavaScript 文件 https://your-worker.workers.dev/raw/username/repo/main/script.js
⚠️ 注意事项: