Skip to content
Gunbot Logo

Multi-Gunbot VPS Deployment Guide

Welcome to the Multi-Instance Gunbot VPS Deployment Guide — a clean, production-ready system for running multiple isolated Gunbot instances on a secure VPS.


🚀 Overview

System preparation and security hardening
🧩 Multi-instance isolation for Live and Simulator bots
🔐 Reverse proxy, HTTPS, and automated certificate renewal
⚙️ PM2 + systemd persistence, log rotation, and backups

Designed for Ubuntu 22.04 and tested on real-world deployments.


🧰 Prerequisites

Before starting, ensure you have the following:

  • 🧠 Working knowledge of the Linux command line (CLI) — you should be comfortable using ssh, sudo, and editing configuration files.
  • 🌐 A registered domain and two subdomains — for example:
    gunbot.your-domain.com and simulator.your-domain.com
    (You can substitute any subdomains; these are used throughout this guide for clarity.)
  • 💻 A VPS with SSH access — Ubuntu 22.04 LTS (recommended) or later, with sudo privileges.
  • 🔑 SSH key pair — set up for passwordless authentication to your VPS.
  • 🧩 Basic understanding of Nginx and networking — helpful but not strictly required.
  • ☁️ Root or administrative access to configure firewalls, services, and certificates.

Note: This guide assumes a fresh VPS installation to minimize conflicts with existing configurations.


📘 Table of Contents

  1. System Preparation
  2. Nginx & Certbot HTTPS
  3. Gunbot Installation
  4. PM2 & Systemd Integration
  5. Backups & Log Rotation
  6. Troubleshooting
  7. Conclusion

⚠️ Note:
This guide is community-authored and focuses on clarity, reproducibility, and operational security.
Always test configurations in a sandbox before applying to production.