mirror of
https://github.com/Tilo-K/ddragon-cdn.git
synced 2026-01-08 08:01:01 +00:00
feat: add readme
This commit is contained in:
54
README.md
Normal file
54
README.md
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
# DDragon CDN
|
||||
|
||||
<div style="display: flex; justif-content: center; align-items: center; width: 100%;">
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
<div style="display: flex; gap: 1rem;">
|
||||
|
||||
[](https://choosealicense.com/licenses/mit/)
|
||||

|
||||
|
||||
</div>
|
||||
This project can be used to host the latest ddragon assets provided by Riot Games. The server checks for new versions and updates the assets accordingly.
|
||||
|
||||
|
||||
## Deployment
|
||||
|
||||
To deploy this project locally run:
|
||||
|
||||
```bash
|
||||
go build -o cdn
|
||||
./cdn
|
||||
```
|
||||
|
||||
To deploy this project via docker:
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
## Environment Variables
|
||||
|
||||
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
|
||||
## Contributing
|
||||
|
||||
Contributions are always welcome!
|
||||
|
||||
Just create a PR if you have somethinh 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](https://tilok.dev/coc).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://choosealicense.com/licenses/mit/)
|
||||
|
||||
BIN
logos/logo-bg.png
Normal file
BIN
logos/logo-bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
BIN
logos/logo.png
Normal file
BIN
logos/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
Reference in New Issue
Block a user