Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 837 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 837 Bytes

PicGo-Worker

A Simple Cloudflare worker to upload image to Cloudflare R2 with PicGo API.

Application

How to start

(Fork or) Clone this repo, and set the secrets first:

  • TOKEN: access token for your worker
    • upload api: https://example.com/upload?key=${TOKEN}
    • delete api: https://example.com/delete?key=${TOKEN}
  • BUCKET_URL: the url of your Cloudflare R2 bucket
npx wrangler secret put TOKEN
npx wrangler secret put BUCKET_URL

Then, you can deploy the worker:

npm run deploy

Thanks