This project serves as a CDN for Odysee transcoded media content. It should work for any kind of objects.
- Install mysql 8 (5.7 might work too)
- Create a database, user and password with localhost only access (hint: use
godycdn
) - Create the table(s) as described here (the link might not update as the code does so just look for the schema in that file)
Copy config.example.json into config.json
next to the binary and change what need to be changed.
Create a systemd script if you want to run it automatically on startup or as a service.
[Unit]
Description="Odysee Transcoder CDN - GodyCDN"
After=network.target
[Service]
WorkingDirectory=/home/YOURUSER
ExecStart=/home/YOURUSER/gody-cdn
User=YOURUSER
Group=YOURGROUP
Restart=on-failure
KillMode=process
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
The binary doesn't currently take any parameters:
./gody-cdn
This project requires Go v1.19+.
On Ubuntu you can install it with sudo snap install go --classic
git clone [email protected]:OdyseeTeam/gody-cdn.git
cd gody-cdn
make
./bin/gody-cdn
Feel free to open pull requests and issues. We can't give any guarantees your changes or requests will be met, but we'll check them all out.
This project is MIT licensed.
We take security seriously. Please contact [email protected] regarding any security issues.
The primary contact for this project is @Nikooo777 (niko-at-odysee.com)