{"id":15356676,"url":"https://github.com/lisonge/aliyun-pages-proxy","last_synced_at":"2026-01-27T07:05:32.882Z","repository":{"id":45139176,"uuid":"368188580","full_name":"lisonge/aliyun-pages-proxy","owner":"lisonge","description":"基于 域名双线解析 的 Github Pages 代理镜像 函数计算 工具","archived":false,"fork":false,"pushed_at":"2022-07-13T12:31:04.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T06:44:58.195Z","etag":null,"topics":["aliyun","dns","gh-pages","serverless"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lisonge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-17T13:06:07.000Z","updated_at":"2025-04-05T09:06:00.000Z","dependencies_parsed_at":"2022-07-13T16:50:29.311Z","dependency_job_id":null,"html_url":"https://github.com/lisonge/aliyun-pages-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lisonge/aliyun-pages-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-pages-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-pages-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-pages-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-pages-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisonge","download_url":"https://codeload.github.com/lisonge/aliyun-pages-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisonge%2Faliyun-pages-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28807178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T06:25:51.065Z","status":"ssl_error","status_checked_at":"2026-01-27T06:25:50.640Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aliyun","dns","gh-pages","serverless"],"created_at":"2024-10-01T12:29:34.321Z","updated_at":"2026-01-27T07:05:32.864Z","avatar_url":"https://github.com/lisonge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Date: 2021-05-17 21:49:05\n * @LastEditors: lisonge\n * @Author: lisonge\n * @LastEditTime: 2021-07-19 20:56:50\n--\u003e\n\n# aliyun-pages-proxy\n\n本工具仅在 github pages 设置自定义域名的情况下工作\n\n加速域名 \u003chttps://i.songe.li/\u003e\n\n## 具体实现\n\n首先设置 首先设置云解析\n\n- 海外地区 CNAME 记录 lisonge.github.io\n- 大陆地区 CNAME 记录 1887623261562936.cn-hongkong.fc.aliyuncs.com\n\n全局安装 `@serverless-devs/s` 并配置密钥，然后进入项目目录\n\n```shell\npnpm run build\npnpm run deloy\n```\n\n然后在控制台绑定自定义域名和路径\n\n这样大陆用户访问的就是 香港的服务，再代理到 github pages，就能加速访问到实际的页面资源\n\n## 附加功能\n\n- `url.searchParams` 不含 `CDN` 且 请求头字段 `accept` 不包含 `text/html` 会 301 到 `cdn.jsdelivr.com`\n- `url.searchParams` 若包含 `CDN=ON`, 则 301 到 `cdn.jsdelivr.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisonge%2Faliyun-pages-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisonge%2Faliyun-pages-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisonge%2Faliyun-pages-proxy/lists"}