{"id":21288955,"url":"https://github.com/cnbattle/upcloud","last_synced_at":"2025-07-11T14:31:43.772Z","repository":{"id":36969745,"uuid":"296840015","full_name":"cnbattle/upcloud","owner":"cnbattle","description":"上传前端项目到CDN平台及自动刷新节点缓存的工具, 支持腾讯云，七牛云，阿里云","archived":false,"fork":false,"pushed_at":"2023-09-20T05:29:52.000Z","size":947,"stargazers_count":9,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T04:23:07.592Z","etag":null,"topics":["aliyun","qiniuyun","tencent-cloud","upcloud"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cnbattle.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}},"created_at":"2020-09-19T10:10:23.000Z","updated_at":"2024-10-22T13:02:26.000Z","dependencies_parsed_at":"2024-06-19T06:29:11.297Z","dependency_job_id":null,"html_url":"https://github.com/cnbattle/upcloud","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/cnbattle/upcloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnbattle%2Fupcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnbattle%2Fupcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnbattle%2Fupcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnbattle%2Fupcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnbattle","download_url":"https://codeload.github.com/cnbattle/upcloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnbattle%2Fupcloud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833275,"owners_count":23670617,"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","qiniuyun","tencent-cloud","upcloud"],"created_at":"2024-11-21T12:32:33.572Z","updated_at":"2025-07-11T14:31:43.461Z","avatar_url":"https://github.com/cnbattle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# upcloud\n\n[![Build Status](https://github.com/cnbattle/upcloud/actions/workflows/vet.yml/badge.svg)](https://github.com/cnbattle/upcloud/actions)\n[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)\n\n\n上传前端项目到CDN平台及自动刷新节点缓存的工具\n\n## USE\n1. 下载对于平台可执行文件,放置到系统PATH目录下, 或\n```shell script\ngo get -u github.com/cnbattle/upcloud\n```\n2. 根据使用的对象存储平台创建配置 `.upcloud.env` 文件, 具体参考下面示例\n\n## TODO\n\n### 功能\n\n- [x] 多线程上传\n\n### 多平台\n- [x] 腾讯云\n- [x] 七牛云\n- [x] 阿里云\n\n## 各平台`.upcloud.env`配置示例\n\n- UP_CLOUD_PLATFORM： 平台\n- UP_CLOUD_PATH： 需上传静态资源路径\n- UP_CLOUD_POOL_SIZE： 上传时的并发数，默认为10\n- UP_CLOUD_PREFETCH_URLS： 上传完成，要刷新缓存的链接，VUE React等静态站点一般刷新首页index.html即可\n\n### 腾讯云 COS\n```.env\nUP_CLOUD_PLATFORM=tencent\nUP_CLOUD_PATH=dist/\nUP_CLOUD_POOL_SIZE=10\nUP_CLOUD_PREFETCH_URLS=your prefetch urls (多个用,分割)\n\nUP_CLOUD_SECRET_ID=your id \nUP_CLOUD_SECRET_KEY=your key\nUP_CLOUD_VISIT_NODE=your visis node\n```\n\n### 七牛云\n```.env\nUP_CLOUD_PLATFORM=qiniu\nUP_CLOUD_PATH=dist/\nUP_CLOUD_POOL_SIZE=10\nUP_CLOUD_PREFETCH_URLS=your prefetch urls (多个用,分割)\n\nUP_CLOUD_ACCESS_KEY=your access key\nUP_CLOUD_SECRET_KEY=your secret key\nUP_CLOUD_BUCKET=your bucket\n```\n\n### 阿里云\n```.env\nUP_CLOUD_PLATFORM=aliyun\nUP_CLOUD_PATH=dist/\nUP_CLOUD_POOL_SIZE=10\nUP_CLOUD_PREFETCH_URLS=your prefetch urls (多个用,分割)\n\nUP_CLOUD_ENDPOINT=your endpoint\nUP_CLOUD_ACCESS_KEY_ID=your access key id\nUP_CLOUD_ACCESS_KEY_SECRET=your access key secret\nUP_CLOUD_BUCKET=your bucket\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnbattle%2Fupcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnbattle%2Fupcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnbattle%2Fupcloud/lists"}