Hosting Setup and Configuration
1. System Requirements
Before installation, ensure your server meets the following requirements:
- RAM: Minimum 8 GB.
- Operating System: Ubuntu 20.04 or newer (or any modern Linux/Unix).
- Processor: At least 2 cores (4 recommended for stable performance).
- Disk Space: Minimum 20 GB.
The server must be clean, without any control panels (like cPanel or Plesk), as the installation script will automatically install necessary software, including Docker.
2. Connecting to the Server via Termius
Step 1. Installing Termius:
- Download Termius for your operating system (Windows, macOS, or Linux).
- Install the program.
Step 2. Configuring Termius:
Open Termius.
Click + New Host to add a new server connection.
Enter the following details:
- Label: Any name for the connection (e.g., "My Server").
- Host: Your server's IP address.
- Username: The server username (usually
root
unless configured otherwise). - Password or SSH Key:
- If using a password, select Password and enter it.
- If using an SSH key, select Use SSH Key and specify the path to your key.
Click Save to store the connection.
Step 3. Connecting to the Server:
- Find the saved connection in the list and click on it to connect to your server.
3. Preparing the Server
Once connected to the server, run the following commands in the terminal to update the packages:
bash
sudo apt update && sudo apt upgrade -y
sudo apt install unzip
These commands will update the software on the server and install necessary utilities.
4. Connecting a Domain via Cloudflare
A separate domain configured through Cloudflare is required for the drainer server to work properly.
Step 1. Registering and Adding the Domain to Cloudflare:
- Sign up for Cloudflare if you don’t have an account.
- Add your domain to Cloudflare by following the on-screen instructions.
- Update your domain’s NS records at your registrar to those provided by Cloudflare.
Step 2. Configuring DNS Records:
- In the Cloudflare dashboard, go to the DNS section.
- Add an A Record to point the domain to your server’s IP:
- Type: A
- Name: @ (or a subdomain like
www
). - IPv4 Address: Enter your server's IP address.
- Ensure the cloud icon next to the record is orange (this means traffic is routed through Cloudflare).
Step 3. Enabling SSL:
- In the Cloudflare dashboard, go to the SSL/TLS section.
- Select Flexible mode to enable HTTPS at the Cloudflare level.