To deploy this project locally run:
go build -o cdn
./cdn
To deploy this project via docker:
docker pull ghcr.io/tilo-k/ddragon-cdn:main
docker run -it -p 3000:3000 -e PORT=3000 -e STORAGE_DIR=/data -v .\data:/data ghcr.io/tilo-k/ddragon-cdn:main
To run this project, you will need to add the following environment variables to your docker container / system
STORAGE_DIR
to specify where the files should be stored.
PORT
to specify the port on which the server listens. Default: 6002
Contributions are always welcome!
Just create a PR if you have something usefull to add. Alternativly create an issue if there is something you would like to see.
Please adhere to this project's code of conduct.