Caution
hypixel.lol has officially been closed. No support provided anymore!
- Easy configuration (Image)
- Automatic config generation for each user (Image)
- Discord webhooks support (Image)
- A user-friendly dashboard with Discord login integration (Image)
- Domain management from the dashboard without any hassle (Image)
- Download / Clone the source code.
- Run
npm i
to install the packages. - After installing you can use the provided setup by typing
node setup.js
to the console. (You can enter the data manually to the file too) - Run
node .
ornpm start
to start the node.
For Linux systems everything is automated with the bash script, all you need to do:
- Make the script executable with
chmod +x install.sh
- And running it with
./install.sh
Here is a list of all the keys in the config with their meaning.
maindomain
: This is the main domain, if a domain is not set in the config it falls back to this.uploadkeylength
: The length of characters, that are after the username in the upload key.nodeserverport
: The port for the server.upload_notify
: Get a console log about every upload.webhook_notify
: Get a Discord webhook log about every upload.webhook_url
: The URL for the webhook.
- Page rendering cleanup
- Webhooks for uploads
- Endpoints cleanup
- Complete user system with Dashboard
- Embed support
To make a new endpoint you need to make a file in the routes
folder with your name of choice. Example: example.js
The empty version should look like this:
const express=require('express')
const router=express.Router()
router.get("/",(req,res)=>{
res.send('Hello!')
})
module.exports=router;
Then you just need to add a new value to the "routes.json"
array:
{
"endpoint": "/yourendpoint",
"location": "./routes/yourfile"
}
Note!
In your endpoint JS file, leave the router endpoint on "/"
, since you will be giving the name of the route in the main server.js
file.
- Make an application on the Discord Developer Page
- Go to the
OAuth2
Tab - Copy the
Client ID
and theClient Secret
, and paste them to the.env.sample
file in the root folder. - NOTE!! Rename
.env.sample
to.env
for it to work. - Make a redirect URL, that matches the route with the one, in the config
DC_URL="http://localhost/login/callback"
To add new folders to the checker, you simply add a new list element containing the path of the folder in the folders
variable in the server.js
file. The checker (/functions/check.js
) will run through all the list items, and checking them, if they exist, if they don't exist, it will make the specified folder.
- GET
/api/uploads/:uploadkey
: Returns a list of uploads uploaded with the upload key. - GET
/api/domains
: Returns a list of all the domains. - POST
/api/upload
: This is the upload URL, and you can use other apps to upload files. In the post body you only need theupload-key
and thefile
.
hypixel.lol is solely owned and developed by Benny. All rights go towards the developers.