从零开始搭建你的免费图床系统 (Cloudflare R2 + WebP Cloud + PicGo) · Pseudoyu
博友用这个搭建图床。感觉不错。
picgo能达成的我想 sharex一定可以达成。
多个备用的免费图床也是不错的。
说干就干。
sharex的教程不多。
只有官方的参考。不过挺详细的了。
如果不明白设置的其实参考picgo的也可以的
例如这个文章。Cloudflare R2设置部分十分详细。
segmentfault.com/a/1190000044911455
Cloudflare R2 guide - ShareX shareX官方配置文章
‘’## How to configure Cloudflare R2 and use it in ShareX
Make an account for Cloudflare.
Ensure that your domain is added onto Cloudflare and verified with NS (Name Server) records on your domain registrar. Your domain has to be hosted through Cloudflare otherwise this won't work at all, and you will be unable to use R2 / Cloudflare CDN to host your images.
While R2 is not free, it does have a generous free tier. The full pricing is available to see here.
To create a bucket:
- Open R2.
- Select
Create bucket
. - Type in your bucket name of choice, and click
Create Bucket
. - Select
Settings
. - Scroll to
Domain Access
and selectConnect Domain
. - Type in your domain and select
Continue
. - Select
Connect domain
.
This will connect your domain to the R2 bucket, and will allow any objects inside of that bucket to be accessible by the selected domain.
To create an API token:
- Open R2.
- Select
Manage R2 API Tokens
on the right top side of the dashboard. - Select
Create API token
. - Select the pencil icon or
R2 Token
text to edit your API token name. - Under
Permissions
, selectRead
orEdit
for your token. - Select
Create API Token
. - Save a copy of your
Access Key ID
andSecret access key
for the next step.
To configure uploading with ShareX:
- In
Destinations
, selectDestination Settings
. - Scroll down to
Amazon S3
and select it. - Using the
Access Key ID
&Secret access key
fill in the two top boxes. - Select "
Endpoint:
" and type<ACCOUNT_ID>.r2.cloudflarestorage.com
. (you can find your account ID on the right hand side of your Dashboard) - Set
Region:
toauto
. - Fill
Bucket name:
with the Bucket Name you picked on Cloudflare. - Change
Upload path:
to your preference. - Update
Use custom domain:
to the domain that you selected in the first step. - Untick "Set public-read ACL on file".
- Ignore the rest of the settings.
- In
Destinations
, selectImage uploader:
and change it toFile Uploader -> Amazon S3
. - Take a screenshot, and ensure that it uploads correctly.
Now you are ready to use Cloudflare R2 in ShareX!
‘’
里面的10GB对我来说是远远够用。
是的,我再看看怎么导出图片。
[…] 最近2年因为Cloudflare的免费服务才去办理的信用卡。 之前 Cloudflare R2 和 shareX 联动 图床 – 万有引力可以顺利使用了。 […]
[…] 这次发图用cf图片服务看看速度效果如何。 之前发文写过设置Cloudflare R2 和 shareX 联动 图床 – ACEVS […]