← All Tutorials
DevOps

Deploying Paychainly to Production: VPS Setup, NGINX, SSL, and PM2

⏱ 54:12· May 12, 2026

What You Will Deploy

By the end of this tutorial your Paychainly backend will be running at https://pay.yourdomain.com, with automatic restarts on crash, proper environment variable management, and SSL termination via Let's Encrypt.

Chapters

  1. Choosing and provisioning a VPS (DigitalOcean, Hetzner, Vultr) (0:00)
  2. Initial server setup: user, firewall, fail2ban (6:00)
  3. Installing Node.js, PostgreSQL, and Redis (12:30)
  4. Cloning and configuring the application (18:00)
  5. Setting up PM2 with ecosystem config (23:45)
  6. NGINX reverse proxy configuration (29:00)
  7. SSL with Certbot and Let's Encrypt (34:30)
  8. Environment variables and secrets management (40:00)
  9. Setting up database backups (45:20)
  10. Monitoring with PM2 and health checks (49:00)
← Back to Tutorials
deploymentvpsnginxsslpm2production