All work
DevOps · 2026

Full-cycle VPS Migration

Case study: Next.js app migration between datacenters

Stack

DebianNginxPM2certbotGitHub Actions

Features

  • Bootstrap script: Node 20 + nginx + pm2 + certbot + ufw in 5 min
  • GitHub Actions autodeploy via SSH keys
  • Nginx with HTTP/2, BBR, TCP Fast Open, immutable cache
  • Let's Encrypt auto-renewal + healthcheck hook
  • DNS migration Cloudflare → reg.ru
  • Security: SSH-keys only, host whitelist, rate limits
Full-cycle VPS Migration
Full-cycle VPS Migration

Overview

Real-world migration of a production app from foreign VPS to Russian DC. Bootstrap script, GitHub Actions autodeploy, nginx HTTP/2 + BBR, Let's Encrypt, zero-downtime DNS migration.