A simple HTTPS server implementation for hosting your Growtopia Private Server (GTPS) with secure connection support.
- Fixing the failed download problem
- HTTPS/SSL Support
- Request Compression
- Rate Limiting
- Request Logging
- Cross-Origin Resource Sharing (CORS) Support
- Express.js Backend
- EJS Template Engine
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- NPM (usually comes with Node.js)
- Clone the repository:
git clone https://github.com/GTPSHAX/growtopia-https.git- Navigate to the project directory:
cd growtopia-https/src- Install dependencies:
npm installThe server uses SSL certificates for HTTPS connections. Make sure to:
- Place your SSL certificates in the certs directory
- Update the certificate paths in your configuration if needed
-
Start the server: or use the provided batch file:
-
The server will start running on the configured port (default: 443 for HTTPS)
growtopia-https/
├── certs/ # SSL Certificates
├── public/ # Static files
├── src/ # Source code
│ ├── MainApp.js # Main application file
│ ├── package.json # Project dependencies
│ ├── middleware/ # Express middleware
│ ├── routes/ # Route handlers
│ └── security/ # Security configurations
└── Config.js # Configuration file
- Uses compression middleware to reduce response size
- Configurable compression level
- Supports compression filtering
- Logs all incoming requests
- Includes timestamp, IP address, and request details
- CORS support included
- Prevents abuse through rate limiting
- Configurable limits and windows
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the GNU License - see the LICENSE file for details.
For issues and feature requests, please use the GitHub Issues page.