{"id":27969809,"url":"https://github.com/cmliu/cf-workers-github","last_synced_at":"2025-05-15T15:08:10.641Z","repository":{"id":271395235,"uuid":"824462659","full_name":"cmliu/CF-Workers-GitHub","owner":"cmliu","description":"这个项目是一个基于 Cloudflare Workers 的 Github 镜像代理工具。它能够中转 Github 项目请求，解决一些访问限制和加速访问的问题。","archived":false,"fork":false,"pushed_at":"2025-04-29T07:10:14.000Z","size":403,"stargazers_count":469,"open_issues_count":0,"forks_count":494,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-07T21:54:46.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://Github.fxxk.dedyn.io","language":null,"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/cmliu.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,"zenodo":null}},"created_at":"2024-07-05T07:29:22.000Z","updated_at":"2025-05-07T18:28:27.000Z","dependencies_parsed_at":"2025-01-07T13:28:59.238Z","dependency_job_id":"cec47d6a-feec-48c7-b917-bbf2b5a7bab9","html_url":"https://github.com/cmliu/CF-Workers-GitHub","commit_stats":null,"previous_names":["cmliu/cf-workers-github"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-GitHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-GitHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-GitHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCF-Workers-GitHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmliu","download_url":"https://codeload.github.com/cmliu/CF-Workers-GitHub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":[],"created_at":"2025-05-07T21:54:43.821Z","updated_at":"2025-05-15T15:08:05.627Z","avatar_url":"https://github.com/cmliu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 CF-Workers-GitHub\r\n![img](./img.png)\r\n## 📝 简介\r\ngithub release、archive以及项目文件的加速项目，支持clone，Cloudflare Workers \u0026 Pages 版本\r\n\r\n\u003e [!CAUTION]\r\n\u003e **Github.fxxk.dedyn.io 已被GFW污染，生产环境建议自行部署服务。**\r\n\r\n\u003e [!WARNING]\r\n\u003e 项目可能会触发**疑似钓鱼网站**警告或域名封禁，请通过环境变量 `URL` 赋值 **nginx** 或 `URL302` 设置302跳转域名进行伪装。\r\n\r\n## 🚀 使用\r\n\r\n直接在copy出来的url前加`https://github.fxxk.dedyn.io/`即可\r\n\r\n也可以直接访问，在input输入\r\n\r\n***大量使用请自行部署，以上域名仅为演示使用。***\r\n\r\n访问私有仓库可以通过\r\n\r\n`git clone https://user:TOKEN@github.fxxk.dedyn.io/https://github.com/xxxx/xxxx` [#71](https://github.com/hunshcn/gh-proxy/issues/71)\r\n\r\n以下都是合法输入（仅示例，文件不存在）：\r\n\r\n- 分支源码：https://github.com/hunshcn/project/archive/master.zip\r\n\r\n- release源码：https://github.com/hunshcn/project/archive/v0.1.0.tar.gz\r\n\r\n- release文件：https://github.com/hunshcn/project/releases/download/v0.1.0/example.zip\r\n\r\n- 分支文件：https://github.com/hunshcn/project/blob/master/filename\r\n\r\n- commit文件：https://github.com/hunshcn/project/blob/1111111111111111111111111111/filename\r\n\r\n- gist：https://gist.githubusercontent.com/cielpy/351557e6e465c12986419ac5a4dd2568/raw/cmd.py\r\n\r\n## 📄 Pages Github 部署\r\n\r\n### 1️⃣ 部署 Cloudflare Pages：\r\n   - 在 Github 上先 Fork 本项目，并点上 Star !!!\r\n   - 在 Cloudflare Pages 控制台中选择 `连接到 Git`后，选中 `CF-Workers-GitHub`项目后点击 `开始设置`。\r\n     \r\n### 2️⃣ 给 Pages绑定 自定义域：\r\n   - 在 Pages控制台的 `自定义域`选项卡，下方点击 `设置自定义域`。\r\n   - 填入你的自定义次级域名，注意不要使用你的根域名，例如：\r\n     您分配到的域名是 `fxxk.dedyn.io`，则添加自定义域填入 `github.fxxk.dedyn.io`即可；\r\n   - 按照 Cloudflare 的要求将返回你的域名DNS服务商，添加 该自定义域 `github`的 CNAME记录 `CF-Workers-GitHub.pages.dev` 后，点击 `激活域`即可。\r\n\r\n## 👷 Workers 部署方法\r\n### ☁️ 部署 Cloudflare Worker：\r\n\r\n   - 在 Cloudflare Worker 控制台中创建一个新的 Worker。\r\n   - 将 [_worker.js](https://github.com/cmliu/CF-Workers-GitHub/blob/main/_worker.js)  的内容粘贴到 Worker 编辑器中。\r\n\r\n## 🔧 变量说明\r\n| 变量名 | 示例 | 必填 | 备注 |\r\n|--|--|--|--|\r\n| URL | `https://www.baidu.com/` |❌| 主页伪装(设为`nginx`则伪装为nginx默认页面) |\r\n| URL302 | `https://t.me/CMLiussss` |❌| 主页302跳转 |\r\n\r\n# 🙏 致谢\r\n[gh-proxy](https://github.com/hunshcn/gh-proxy)、[jsproxy](https://github.com/EtherDream/jsproxy/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcf-workers-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmliu%2Fcf-workers-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcf-workers-github/lists"}