Serve S3 MinIO files like Cloudflare R2.
It's very lightweight and fast, powered by Bun.
- Bun
>= 1.1.x
-
Clone this repository
git clone https://github.com/sooluh/minio-cdn.git
-
Move to the repository dir
cd minio-cdn
-
Install dependencies
bun install
-
Run it!
bun src/app.ts
Need a watch mode (hot reload) that's super fast?
bun --watch src/app.ts
-
Build image
docker build -t minio-cdn .
-
Run it!
docker run -d \ -e MINIO_ACCESS_KEY='' \ -e MINIO_SECRET_KEY='' \ -e MINIO_BUCKET_NAME='app' -e MINIO_ENDPOINT='10.10.20.1' \ -e MINIO_PORT='9000' \ -e MINIO_USE_SSL='false' \ -p 3000:3000 \ minio-cdn
This project is licensed under MIT License.
This project is not officially maintained by MinIO. MinIO trademarks and logo are the property of MinIO, Inc.