Wood Chen

Add a Cloudflare R2 Bucket as a Storage Strategy in Lsky Pro

0 comments584 views226 words

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

Why I Use Cloudflare R2

  1. No egress fees;
  2. 10G free, with low prices beyond that—much cheaper than providers in China;
  3. I like using Cloudflare;

Create a Cloudflare Bucket and Get the ID and KEY

  1. Create a bucket. You can choose Asia as the region.
  2. After creating it, click Settings and bind your own access domain first.
  3. Once the domain is bound, return to “R2-Overview” and create a token.
  4. Choose a name for the token. Set the expiration date as far out as you can, though none of the available durations are very long. I found that the latest version lets you choose no expiration. Select "Edit" for permissions, then click Create.


  1. Once created, you will have the ID and KEY.
  2. Sorry, I missed a step: get the endpoint from this section of the bucket settings. Use only the base domain, without the trailing /路径.

Add It to Lsky Pro

  1. Create a storage strategy.
  2. Enter a name, select the role group as needed, and choose AWS S3 as the storage strategy.

  1. Configure the settings

    • Access domain: the domain you bound
    • ID: the ID you received after creating the token
    • KEY: the token's key
    • Endpoint: the address obtained in step six above
    • Region: just choose auto; it does not matter
    • Bucket name: the name you assigned to the bucket

  1. Then save and enable it.

Last updated 2024-01-14

Related posts

Comments 0