{"repo":"spinfal/cdn-slave","free":true,"listed":false,"github":"https://github.com/spinfal/cdn-slave","clone":"git clone https://github.com/spinfal/cdn-slave.git","description":"A simple website that allows you to upload files to Discord's CDN without having to do it in their app.","language":"JavaScript","stars":20,"topics":["discord","discord-js","discord-cdn","cdn","website","simple","idkwhattagtouse","discord-bot","nodejs"],"license":"AGPL-3.0","category":"chat-messaging","readme_excerpt":"Updates https://blog.spin.rip/p/discord-cdn-changes CDN Slave A simple website that allows you to upload files to Discord's CDN without having to do it in their app. Prerequisites Node.js Discord Bot Git (optional) Installation Run this command: or download the ZIP file and extract it Follow these steps: - Rename Global.example.js to Global.js - Go to https://discord.com/developers/applications and create bot - Make sure this is enabled - Invite the bot to your server using this link: https://discord.com/api/oauth2/authorize?client id=INSERT YOUR APPLICATION ID&permissions=52224&scope=bot - Configure the Global.js file (bot, channel, and database settings) Continue with running these commands: This creates Global.js if missing, initializes the SQLite database, and builds CSS. If you skip setup , run db:init manually. or Usage The website will be up @ http://localhost:443 (unless you've changed the config) Files uploaded on the site will be available in the channel that you set in Global.js If you want custom URLs to point at your domain, set publicUrl in Global.js . Database SQLite stores data in a local file at data/cdn-slave.sqlite by default. To move it elsewhere, update database.filename in Global.js . Upload Controls Uploads use the size limit from maxFileSize and run through rate limiting, MIME checks, and concurrency caps. Adjust these settings in Global.js : - upload.rateLimit.windowMs and upload.rateLimit.max (per-IP requests) - upload.maxConcurrent (simultaneous upl","default_branch":null,"files":null,"tree":[],"storefront":"/r/spinfal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spinfal/cdn-slave/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}