# fuck-github-by-cf **Repository Path**: pythonxueba/fuck-github-by-cf ## Basic Information - **Project Name**: fuck-github-by-cf - **Description**: Cloudflare Workers GitHub Proxy - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2026-01-14 - **Last Updated**: 2026-02-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GitHub Proxy - Cloudflare Worker GitHub 加速代理服务,基于 Cloudflare Workers 部署。 ## 功能特性 - ✅ GitHub 仓库页面代理 - ✅ Raw 文件加速访问 - ✅ 文件预览支持 - ✅ Release 下载加速 - ✅ Avatar 头像加速 - ✅ API 请求代理 ## 部署方式 1. 登录 [Cloudflare Dashboard](https://dash.cloudflare.com/) 2. 进入 Workers & Pages 3. 创建新 Worker 4. 复制 `worker.js` 内容粘贴 5. 绑定自定义域名(如 `github.dopdop.top`) ## 使用方式 | 功能 | URL 格式 | |------|----------| | 首页 | `https://your-domain/` | | 仓库 | `https://your-domain/用户名/仓库` | | 文件预览 | `https://your-domain/用户名/仓库/blob/分支/文件路径` | | Raw 文件 | `https://your-domain/raw/用户名/仓库/分支/文件路径` | | 下载 | `https://your-domain/用户名/仓库/archive/refs/heads/main.zip` | | Release | `https://your-domain/用户名/仓库/releases/download/版本/文件` | ## 支持的 GitHub 域名 | 前缀 | 原始域名 | |------|----------| | (无) | github.com | | raw/ | raw.githubusercontent.com | | assets/ | github.githubassets.com | | avatars/ | avatars.githubusercontent.com | | camo/ | camo.githubusercontent.com | | user-images/ | user-images.githubusercontent.com | | objects/ | objects.githubusercontent.com | | media/ | media.githubusercontent.com | | api/ | api.github.com | | codeload/ | codeload.github.com | ## 配置说明 修改代码顶部的 `DOMAIN` 变量为你的域名: ```javascript const DOMAIN = 'github.dopdop.top' ``` ## 注意事项 - 需要绑定自定义域名才能正常使用 - 建议开启 Cloudflare CDN 缓存 - 如遇问题可刷新页面重试 ## License MIT