Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

cmj2002/picgo-CF-R2

Repository files navigation

picgo-plugin-cloudflare-r2

Warning

The repo is archived and no longer maintained. It is recommended to use the S3 API of R2 for uploading and publish it through Custom Domain.

PicGo plugin for cmj2002/CF-R2-ImageBed

Configuration

There are 3 configuration options:

  • remoteURL: the remote URL of the CF-R2-ImageBed Worker. Don't miss https:// at beginning or / at the end.
  • secret : the secret of the CF-R2-ImageBed Worker.
  • uploadPath: the path of the uploaded images. That must be contained in the allowPaths in the config of Worker.

The file you upload will be place at /uploadPath/{year}/{month}/{date}{hour}{minute}{second}{i}.{extname}, where {i} is the index if you upload multiple images at the same time.