How to install
How to install CDN system
First-time Install
- Upload the contents of the downloaded folder into the root directory of your domain. This file will include an index.php, config.php, and structure.sql file.
- Go to your webpanel (cPanel, CentOS Web Panel, or DirectAdmin) and create a new database. Make sure to keep track of the database name, database username, and user password.
- Enter into that database and insert the provided SQL file.
- Visit here and complete the following steps:
- Go back to where you uploaded the files and edit the config.php file to include the following information
- Edit the $database variable.
- Set the 'host' key to be that of your database host (in most cases, it's just 'localhost').
- Set the 'user' key to be the username of the user to access the database.
- Set the 'password' key to be the password of the user.
- Set the 'name' key to be the name of the database.
- Edit the $information variable.
- Set the 'name' key to be the name of the site.
- Set the 'logo' key to be the link to an image for the favicon.
- Set the 'fontAwesomeKit' key to be that of a FontAwesome kit ID (they can be created here).
- Set the 'mainColor' key to be a hex code for the main color of the website.
- Set the 'backgroundColor' key to be a hex code for the background color of the website.
- Set the 'foregroundColor' key to be a hex code for the foreground color of the website.
- Set the 'discord' key to be the following:
- Set the 'client' key to include the Discord secret from the application created in step #4.
- Set the 'secret' key to include the Discord secret from the application created in step #4.
- Set the 'users' key to be an array of Discord IDs of users allowed to upload files into storage.