Skip to content

donchenima/go-minio-cdn

Repository files navigation

Cdn Api With Go and MinIO

Create your own Cdn service on Minio and Aws with Golang.

Installation

Since the project will run on docker, you must have docker installed on your computer.

You must change the .env.example file name to .env and enter the required information.

  • git clone https://github.com/mstgnz/go-minio-cdn.git
  • docker-compose up -d

minio -> http://localhost:9000
golang -> http://localhost:9090

Image Upload

POST: (Minio) http://localhost:9090/upload
POST: (Minio And Aws S3) http://localhost:9090/upload-with-aws
WIDTH: Authorization (env.example)

KEY VALUE
bucket bucket name
path slider
file choose file

Image Get

GET IMAGE : http://localhost:9090/bucket-name/object-name
GET IMAGE WIDTH SIZE : http://localhost:9090/bucketname/300/250/object-name

Image Delete

DELETE: (Minio) http://localhost:9090/delete
DELETE: (Minio And Aws S3) http://localhost:9090/delete-with-aws
WIDTH: Authorization (env.example)

KEY VALUE
bucket bucket name
object object name

SOURCE

go s3 pkg
aws storage service
minio golang sdk
imagemagick releases
aws-s3-glacier
aws-cli-glacier

About

Golang Cdn Api With Minio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.0%
  • HTML 6.0%