https://github.com/flying-tom/picgo-worker
https://github.com/flying-tom/picgo-worker
cloudflare cloudflare-worker cloudflare-workers obsidian-plugin picgo
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/flying-tom/picgo-worker
- Owner: Flying-Tom
- License: mit
- Created: 2024-11-26T16:15:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-22T04:50:34.000Z (3 months ago)
- Last Synced: 2025-02-06T08:13:31.604Z (3 months ago)
- Topics: cloudflare, cloudflare-worker, cloudflare-workers, obsidian-plugin, picgo
- Language: TypeScript
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PicGo-Worker
A Simple Cloudflare worker to upload image to Cloudflare R2 with PicGo API.
## Application
- [obsidian-image-auto-upload-plugin](https://github.com/renmu123/obsidian-image-auto-upload-plugin)
- [vs-piclist](https://marketplace.visualstudio.com/items?itemName=Kuingsmile.vs-piclist)## 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```bash
npx wrangler secret put TOKEN
npx wrangler secret put BUCKET_URL
```Then, you can deploy the worker:
```bash
npm run deploy
```## Thanks
- [PicGo](https://github.com/Molunerfinn/PicGo)
- [PicList](https://github.com/Kuingsmile/PicList)