{"id":13453400,"url":"https://github.com/yllhwa/FileWorker","last_synced_at":"2025-03-24T01:31:25.249Z","repository":{"id":228931506,"uuid":"775257907","full_name":"yllhwa/FileWorker","owner":"yllhwa","description":"运行在Cloudflare Worker上的在线剪贴板/文件共享","archived":false,"fork":false,"pushed_at":"2024-09-16T12:47:22.000Z","size":182,"stargazers_count":325,"open_issues_count":8,"forks_count":330,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-16T20:42:42.709Z","etag":null,"topics":["cloudflare","cloudflare-pages","cloudflare-r2","cloudflare-workers"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yllhwa.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":"2024-03-21T03:30:16.000Z","updated_at":"2025-03-08T12:47:01.000Z","dependencies_parsed_at":"2024-06-07T05:22:39.154Z","dependency_job_id":"c9634def-0245-4e77-84cd-17bad89a9e26","html_url":"https://github.com/yllhwa/FileWorker","commit_stats":null,"previous_names":["yllhwa/fileworker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yllhwa%2FFileWorker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yllhwa%2FFileWorker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yllhwa%2FFileWorker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yllhwa%2FFileWorker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yllhwa","download_url":"https://codeload.github.com/yllhwa/FileWorker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245194223,"owners_count":20575725,"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":["cloudflare","cloudflare-pages","cloudflare-r2","cloudflare-workers"],"created_at":"2024-07-31T08:00:39.420Z","updated_at":"2025-03-24T01:31:24.817Z","avatar_url":"https://github.com/yllhwa.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eFileWorker\u003c/h1\u003e\n\nFileWorker 是一个轻量级的文件管理和在线剪贴板，基于 Cloudflare Pages 和 R2。\n\n## ✏️部署\n\n更新无需重新部署，在 fork 的仓库里同步上游即可，cloudflare 会自动更新。\n\n1. Fork 本仓库\n2. 部署 Pages\n\n   Cloudflare DashBoard -\u003e Workers \u0026 Pages -\u003e Create application -\u003e Pages -\u003e\n\n   Connect to Git -\u003e 选择 Fork 的仓库 -\u003e\n\n   设置 `Build command`: `npm run build`\n\n   设置 `Build output directory`: `dist`\n\n   点击 `Save and Deploy`\n\n3. 创建 R2 存储桶\n\n   Cloudflare DashBoard -\u003e R2 -\u003e Create Bucket\n   记住创建的桶名，后面环境变量处会使用\n\n5. 获取 R2 存储桶的信息\n\n   Cloudflare DashBoard -\u003e R2 -\u003e Manage R2 API Tokens -\u003e Create API token\n\n   选择 Object Read \u0026 Write 或者 Admin Read \u0026 Write。\n\n   创建后记录 `Access Key ID`、`Secret Access Key`。\n   以及存储桶的`Endpoint`（格式为：`https://{account_id}.r2.cloudflarestorage.com`）\n\n   这些信息不会再次显示。\n\n6. 设置环境变量\n\n   Cloudflare DashBoard -\u003e {Your Worker} -\u003e Settings -\u003e Environment Variables -\u003e (Production)Add variables\n\n   添加以下环境变量：\n\n   1. S3 地区，对于 R2 存储桶可以直接设置为 `auto`\n\n      \u003e REGION=auto\n\n   2. 存储桶名称，这里不是固定的，是上一步中创建存储桶的桶名\n\n      \u003e BUCKET=store\n\n   3. 存储桶的 Endpoint\n\n      \u003e ENDPOINT=https://{account_id}.r2.cloudflarestorage.com\n\n   4. Access Key ID\n\n      \u003e ACCESS_KEY_ID=31415926535897932384626433832795\n\n   5. Secret Access Key\n\n      \u003e SECRET_ACCESS_KEY=3141592653589793238462643383279502884197169399375105820974944592\n\n   6. 访问密码（自己设置）\n      \u003e PASSWORD=123456\n\n7. 重新部署\n\n   Cloudflare DashBoard -\u003e {Your Worker} -\u003e Deployments -\u003e All deployments -\u003e Retry deployment\n\n## 💡使用\n\n![index](README/index.png)\n\n![clip](README/clip.png)\n\n![file](README/file.png)\n\n![manage](README/manage.png)\n","funding_links":[],"categories":["TypeScript","文件分享","Dateifreigabe"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyllhwa%2FFileWorker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyllhwa%2FFileWorker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyllhwa%2FFileWorker/lists"}