HTTP-King is a feature-rich HTTP server designed for Growtopia private servers. It offers easy configuration, reverse proxy capabilities, rate limiting, and blacklisting functionalities, all while providing a seamless user experience.
- Reverse Proxy: Redirects incoming requests to specified target servers.
- Rate Limiting: Prevents abuse by limiting the number of requests from a single IP.
- Connection Throttling: Limits the number of concurrent connections from a single IP.
- Blacklisting: Block unwanted IP addresses.
- Express Integration: Provides a REST API for administrative tasks.
- Logging: Enhanced colorful console logging for better visibility.
- Node.js (version 12 or higher)
- NPM (Node Package Manager)
- A valid SSL certificate (
server.key
andserver.crt
files) - A configuration file (
config/main.json
) with the following structure:
The server configuration is stored in config/main.json
. Below is an example configuration:
{
"port": "17091",
"ip": "127.0.0.1",
"meta": "Server is currently initializing or re-syncing with sub servers. Please try again in a minute.",
"cdn": "0098/516691/",
"loginurl": "tron-login.zapto.org:444",
"ratelimit": 100,
"betareverseproxytarget": "https://httpbin.org",
"throttleConnections": 100
}
- git clone https://github.com/SurekingDevone/http-king-v2.git
- cd http-king-v2
- npm install
The HTTP King v2 provides several API endpoints for managing the server's configurations and monitoring its status. Below are the available endpoints:
- Returns the current server status, including rate limits and blacklisted IPs.
- Adds an IP address to the blacklist.
- Updates the rate limit for incoming requests.