{"id":18838674,"url":"https://github.com/ifuyun/cdn-cert","last_synced_at":"2026-01-28T14:30:15.869Z","repository":{"id":258706341,"uuid":"874411492","full_name":"ifuyun/cdn-cert","owner":"ifuyun","description":"Automatically push the new certificates to Aliyun CDN","archived":false,"fork":false,"pushed_at":"2024-10-21T13:41:49.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T09:14:18.869Z","etag":null,"topics":["aliyun","cdn","https","letsencrypt"],"latest_commit_sha":null,"homepage":"https://www.ifuyun.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ifuyun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-10-17T19:25:30.000Z","updated_at":"2024-10-29T03:40:02.000Z","dependencies_parsed_at":"2024-10-21T18:04:35.082Z","dependency_job_id":null,"html_url":"https://github.com/ifuyun/cdn-cert","commit_stats":null,"previous_names":["ifuyun/cdn-cert"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifuyun%2Fcdn-cert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifuyun%2Fcdn-cert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifuyun%2Fcdn-cert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifuyun%2Fcdn-cert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifuyun","download_url":"https://codeload.github.com/ifuyun/cdn-cert/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774335,"owners_count":19694700,"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":["aliyun","cdn","https","letsencrypt"],"created_at":"2024-11-08T02:40:16.394Z","updated_at":"2026-01-28T14:30:15.829Z","avatar_url":"https://github.com/ifuyun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDN Cert\n\n自动将 Let's encrypt 证书推送到阿里云 CDN。\n\n## 使用方法\n\n1. 下载项目：`git clone git@github.com:ifuyun/cdn-cert.git`\n2. 复制`config.sample.ts`，将其命名为`config.ts`，并修改配置。\n3. 执行`npm i`安装依赖。\n4. 执行`npm run start:dev`更新证书。\n5. 执行`npm run start:demo`运行示例。\n\n## 配置\n\n以对象数组的形式配置多个用户和域名：\n\n| 配置项                     | 说明               |\n|-------------------------|------------------|\n| accessKeyId             | AccessKey ID     |\n| accessKeySecret         | AccessKey Secret |\n| regionId                | 可用区ID，可选         |\n| cert                    | 证书配置             |\n| cert.certDomain         | 根域名              |\n| cert.certPublicKeyPath  | 证书路径             |\n| cert.certPrivateKeyPath | 证书私钥路径           |\n| cert.cdnDomains         | CDN域名列表          |\n\n## 定时更新\n\n```bash\ncrontab -e\n```\n```ini\n# 每周日 04:00 执行\n0 4 * * 0 node /path/to/repo/dist/index.js\n```\n\n或者在`certbot renew`命令中追加`--deploy-hook \"node /path/to/repo/dist/index.js\"`参数：\n\n```bash\ncertbot renew --manual --preferred-challenges dns --manual-auth-hook \"alidns\" --manual-cleanup-hook \"alidns clean\" --deploy-hook \"node /path/to/repo/dist/index.js\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifuyun%2Fcdn-cert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifuyun%2Fcdn-cert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifuyun%2Fcdn-cert/lists"}