Skip to content

castyapp/cdn.service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casty cdn.service

This project handles storage for s3 buckets like: avatars, posters, subtitles and etc... on minio s3 bucket

Prerequisites

Clone the project

$ git clone https://github.com/castyapp/cdn.service.git

Configuraition

Make a copy of example.config.hcl for your own configuration. save it as config.hcl file.

$ cp example.config.hcl config.hcl

s3 configuration

Put your running s3 bucket server details

endpoint              = "localhost:9000"
access_key            = "access_key"
use_https             = false
insecure_skip_verify  = true
secret_key            = "super-secure-secret-key"
sentry_dsn            = ""

You're ready to Go!

Run project with go compiler

You can simply run the project with following command

$ go run server.go

or if you're considering building the project use

$ go build -o server .

or Build/Run the docker image

$ docker build . --tag=casty.cdn

$ docker run -dp --restart=always 5555:5555 casty.cdn