Limour

Limour

临床医学在读。

【Freeloading】Using CloudFlare R2 to build a personal image hosting service

Advantages Introduction#

  1. Free quota is sufficient for personal use.
  2. No additional configuration for CDN is required.
  3. Custom domain is more elegant.
免费付费 - 费率
存储10 GB / 月$0.015 / GB - 月
A 类操作100 万次请求 / 月$4.50 / 百万次请求
B 类操作1000 万次请求 / 月$0.36 / 百万次请求

Step 1: Create R2 Storage Bucket#

chrome_5YbnxMK81u

Step 2: Bind Domain#

chrome_eweuBKiNwN

Step 3: Create S3 Token#

chrome_4YMlWlYLO4
chrome_yyxuZkfrAD

Step 4: Install Lsky Image Hosting#

mkdir -p ~/app/Lsky && cd ~/app/Lsky && nano docker-compose.yml
docker-compose up -d
version: '3.3'
services:
  lsky-pro:
    restart: always
    volumes:
       - './lsky-pro-data:/var/www/html'
    image: 'dko0/lsky-pro'

networks:
  default:
    external: true
    name: ngpm

msedge_h3YZSPNAGC

Step 5: Add R2 Storage Bucket to Image Hosting#

msedge_Ot4liDJ20L

Step 6: Upload Image for Testing#

test_img

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。