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
- Choosing and provisioning a VPS (DigitalOcean, Hetzner, Vultr) (0:00)
- Initial server setup: user, firewall, fail2ban (6:00)
- Installing Node.js, PostgreSQL, and Redis (12:30)
- Cloning and configuring the application (18:00)
- Setting up PM2 with ecosystem config (23:45)
- NGINX reverse proxy configuration (29:00)
- SSL with Certbot and Let's Encrypt (34:30)
- Environment variables and secrets management (40:00)
- Setting up database backups (45:20)
- Monitoring with PM2 and health checks (49:00)