{"id":13614405,"url":"https://github.com/ChenYFan-Tester/IPFS_PHOTO_SHARE","last_synced_at":"2025-04-13T18:33:02.573Z","repository":{"id":49573957,"uuid":"375540047","full_name":"ChenYFan-Tester/IPFS_PHOTO_SHARE","owner":"ChenYFan-Tester","description":"💰用甚嚒服务器，ServerLess搭建一个图片分享站点！| 基于CloudFlareWorker无服务器函数和IPFS去中心化存储的图片分享网站","archived":false,"fork":false,"pushed_at":"2021-06-18T09:35:19.000Z","size":1620,"stargazers_count":89,"open_issues_count":2,"forks_count":40,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-11T23:35:51.874Z","etag":null,"topics":["cloudflare","cloudflare-worker","cloudflare-workers","serverless","serverless-functions","workerjs"],"latest_commit_sha":null,"homepage":"https://photo.cyfan.top","language":"CSS","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/ChenYFan-Tester.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-06-10T01:58:36.000Z","updated_at":"2024-05-03T11:40:26.000Z","dependencies_parsed_at":"2022-08-20T15:00:19.465Z","dependency_job_id":null,"html_url":"https://github.com/ChenYFan-Tester/IPFS_PHOTO_SHARE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenYFan-Tester%2FIPFS_PHOTO_SHARE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenYFan-Tester%2FIPFS_PHOTO_SHARE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenYFan-Tester%2FIPFS_PHOTO_SHARE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenYFan-Tester%2FIPFS_PHOTO_SHARE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChenYFan-Tester","download_url":"https://codeload.github.com/ChenYFan-Tester/IPFS_PHOTO_SHARE/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213578127,"owners_count":15607924,"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-worker","cloudflare-workers","serverless","serverless-functions","workerjs"],"created_at":"2024-08-01T20:01:01.165Z","updated_at":"2024-08-01T20:05:49.598Z","avatar_url":"https://github.com/ChenYFan-Tester.png","language":"CSS","readme":"# IPFS图片分享站\n\n本来只是自己随手写的一个小项目，也没想着怎么规范化，只是怎么方便怎么来，没想到会这么多人想搭建。\n\n稍微重写了一下，目前搭建就是直接把[./dist/index.min.js](https://github.com/ChenYFan-Tester/IPFS_PHOTO_SHARE/blob/main/dist/index.min.js)复制到Worker框里面，然后配置。\n\n# 配置过程\n\n## 绑定KV\n\n`设置`=\u003e`KV 命名空间绑定`=\u003e`编辑变量`=\u003e`添加绑定`\n\n- `变量名称` =\u003e `KV`\n- `KV 命名空间` =\u003e `下拉，选一个`\n\n## 设置变量\n\nKV的写入次数是有限的，避免被滥用和盗刷，我们强制开启了人机验证模块[reCAPTCHA V3无感知评分](https://www.google.com/recaptcha/)。\n\n请先[注册reCAPTCHA](https://g.co/recaptcha/v3)(需要梯子)，选择类型为\"reCAPTCHA第3版\",之后将获得的密钥设置至Workers变量。\n\n|变量名|变量内容|\n|---|---|\n|`RECAP`|在您的网站提供给用户的 HTML 代码中使用此网站密钥。|\n|`RECAP_TOKEN`|此密钥用于您的网站和 reCAPTCHA 之间的通信。|\n|`PASS`|此密钥将作为加密密钥，请手滚键盘，无需记忆|\n\n# 开发者\n\n如果你想让这个程序工作的更好，可以修改`config.json`配置文件，修改后需运行`webpack`进行打包：\n\n- `accept_suffix` 接受的后缀 `Array`\n- `accept_size` 接受的文件最大大小 `Number`\n- `accept_size` 接受的文件名最长长度 `Number`\n- `upload_url` 由于`infura`官方api屏蔽了CloudFlareWorker的出口节点,此url为其反代,您也可以自建 `String`\n- `ipfs_url` ipfs镜像地址，Worker建议用CloudFlare提供的ipfs地址，您也可以自建 `String`\n- `recap_mirror` 人机验证是否开启镜像,在中国大陆内必须开启 `Boolean`\n- `recap_score` 人机验证最低分数,建议`0.4~0.7` `Number`\n- `encry` 加密hash，使其无法获得直链，必须在此站点内使用**加密会严重拖慢程序运行时间，当出现500错误时，请尝试将此设置为false** `Boolean`\n","funding_links":[],"categories":["CSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChenYFan-Tester%2FIPFS_PHOTO_SHARE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChenYFan-Tester%2FIPFS_PHOTO_SHARE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChenYFan-Tester%2FIPFS_PHOTO_SHARE/lists"}