Sharex 使用 backblaze B2并接入Cloudflare CDN
[scode type="green"]懒得翻译了2333,有不懂的可以留言,反正我也不懂[/scode]
需要的:
- 免费版: cloudflare dns with a domain of yours parked on it
- 免费版: BackBlaze B2 for up to 10GB of storage buckets
- ShareX
what we want
- a simple and relyable way to take care of your daily screenshot/screenshare/fileshare foo
- I'm assuming sharex is already in use as I will not go through capture and processing parts of it, just the upload and actual share
- leverage our own domain-name in the sharing link
what we do
-
find out your BB details and spawn the filebucket create api credentials
-
setup sharex and upload a file to reveal our backblaze details
-
setup the domain
-
setup a worker script to utilize cdn and shorten our url
1. BackBlaze
create a Bucket that publicly accessible give it a namethat makes sense
create api credentials for sharex with read/write permissions to that bucket
2. ShareX
setup a new destination from thepresets and put the credentials we just received
set it up as your default and upload a testfile to see if the credentials work and have sufficiant permissions
if that all worked head back to BB2 and check the filedetails of the upload as it will reveal the hostname we need for our dns setup withing cloudflare
I put the interesting parts in red -> f000l.backblazeb2.com is our cname hostname
3. CloudFlare DNS setup
head over to cloudflare and setup a cname record that points to backblaze, something like this
via.https://github.com/phixion/sharex-bb2cf
另外,可参考:https://wzfou.com/backblaze-b2/
https://www.xiaoz.me/archives/13256
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »