Pterodactyl Trial Servers is a web dashboard developed for Pterodactyl cloud hosting companies. It allows users to create trial servers without requiring an account in the Pterodactyl panel. Built with Vite, React.js, Express.js, WebSocket, Pterodactyl, and reCaptcha, this project aims to streamline server trial setups.
- Create trial servers without a Pterodactyl account
- Utilizes Vite, React.js, Express.js, WebSocket, Pterodactyl, and reCaptcha
- Customizable dashboard for server management
To get started with Pterodactyl Trial Servers, clone the repository and follow the setup instructions in the README
file.
- Clone the repository.
- Install dependencies using
npm install
. - Configure environment variables.
- Build Vite with
npm run build
. - Start the Production server with
npm run start
.
or
- Clone the repository.
- Configure environment variables.
- Run
node start.js
which will install all dependencies, Builds the files, then starts the Production server.
Refer .env.txt
file for ENV Structure
Database Structure
{Database} -> {Collection}
Servers -> Categories
{
# id with * is a Wild Card which selects all the Trial Servers
"id": "*", # Category ID which should be passed in Trial Server Object.
"name": "All" # Category Name.
}
{
"id":"plugin",
"name":"Vanilla"
}
Servers -> List
Trial Server Object that should be inserted inside the List
Collection in MongoDB
{
"name": "Trial Server Name",
"description": "Description about this Trial Server",
"price": "$99.99",
"category": ["*", "mod"], # List of categories you want to put into.
"popular": false,
"server_data": {
"user": 5, # Pterodactyl User ID under which this trial server should be created.
"egg": 18, # Pterodactyl Egg ID for this trial server.
"docker_image": "ghcr/... docker_image of the egg file",
"startup": "java... startup command of the egg file",
"environment": {
"SERVER_JARFILE": "server.jar",
"MC_VERSION": "latest",
... # Pass all `required` field ENV variables of the Egg file
},
"limits": { # Passing 0 value in limits denotes infinity resource
"cpu": 200,
"memory": 4096,
"disk": 4096,
"swap": 512,
"io": 500
},
"feature_limits": { # Passing 0 value in feature_limits denotes 0
"databases": 0,
"backups": 0
},
"node": 2 # Pterodactyl Node ID under which this trial server should be created.
},
"expiry": 5, # Expiry time in hrs so that the trial server should be automatically purged by the server. Eg. here its 5hrs
"links": {
"Yuvaraja": "https://yuvaraja.tech",
"Devley": "https://devley.yuvaraja.tech"
... # Pass the links in the same format so that can be showed in your server create section.
}
}
Contributions are welcome! Please fork the repository and submit pull requests.
HomePage | Server Create | Server Control |
---|---|---|
This project is licensed under Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).