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.comandsimulator.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
sudoprivileges. - 🔑 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¶
- System Preparation
- Nginx & Certbot HTTPS
- Gunbot Installation
- PM2 & Systemd Integration
- Backups & Log Rotation
- Troubleshooting
- 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.