跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[奇思妙想] 高可靠度、低成本的 ipfs、oss(b2、s3)混合图床

发表于

ipfs 图床的运行成本很低,但是有一个问题,如果图片一年都没有人浏览,可能会丢失。

付费 s3 这种存储只要你付费图片一直就在,但是流量成本很高。

我们可以把这两个结合一下,图片先上传到 ipfs ,然后拿到 ipfs 的图片哈希,然后根据这个哈希保存到 b2 。

访问图片的时候优先走 ipfs ,如果 ipfs 找不到,那就走 b2 ,并且同时再上传一次到 ipfs 。同一个文件在 ipfs 链接是一致的,重复上传后,老链接就可以恢复访问。

另外有几十个公共的 ipfs 网关,每次图片可以随机调用一个网关,这个网关就会保存一份这个图片,等于你的图片复制到几十个网关的缓存里面。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.