Skip to content

Server Installation

1. Uploading the FusionDrainer Archive to the Server

  1. Open Termius and connect to your server.
  2. Use the SFTP client in Termius (select your server and click the file manager icon).
  3. In the SFTP client, find the file fusion-drainer-main.zip on your computer.
  4. 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

  1. In the Termius terminal, run the following command to extract the archive:

    bash
    unzip fusion-drainer-main.zip
  2. Navigate to the extracted folder:

    bash
    cd fusion-drainer-main

3. Granting Execution Permissions

To run the installation script, execute the following command:

bash
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

  1. In the SFTP client in Termius, locate the file config.example.yaml.
  2. Right-click the file and choose "Rename".
  3. Rename the file to config.yaml.

5. Configuring the config.yaml File

Next, you need to configure the config.yaml file.

  1. In the SFTP client in Termius, right-click the config.yaml file and select "Edit".
  2. Modify the following parameters:

API Settings:

yaml
api:
  base_url: "https://example.com"  # Insert your base URL (e.g., https://yourdomain.com)

Telegram Bot Settings:

yaml
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:

yaml
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:

  1. 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.