Keep using Discord as your CDN host, bypassing the expiry on download links!
Once setup, you will be able to go to http://YOUR_SERVER_IP/DISCORD_DOWNLOAD_LINK
and it will redirect you to the latest link for that file.
It is fully safe to share the endpoint with your friends and anyone else. Your token is NOT exposed anywhere.
- Install Node.js from official website.
- Verify installation using
node -v
andnpm -v
.
- Install Git for version control.
git clone https://github.com/ShufflePerson/discord_cdn.git
Or download the source as a zip file and extract it.
npm run setup
TOKEN=NTU2NjQ0NTI1MTgzMTk4MTA0.SWGjq3.cAINvMoMWOeeG36MBddlhhwrcCD
PORT=80
CACHE_TIME=3600
npm run start
Simply paste the download url to the end of your server.
It is fully safe to share the server's IP, your token is not exposed anywhere.
http://127.0.0.1/https://cdn.discordapp.com/attachments/1165690279932735643/1175070504986611762/untitled.mp3
- Open Discord on your Browser.
- Open the Dev Tools ( Inspect Element )
- Go to the Console Tab and paste in the following command
console.log((webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken());
- Copy the output and set it in the
.env
file. (e.gTOKEN=PASTE_TOKEN_HERE
)
My Discord is: _.shuffle._