VPS and nginx: Deploy in 5 Minutes
This is a DEMO FREE guide to server setup for your static site.
Choosing a VPS
Any VPS with Ubuntu 22.04 or newer works. Minimum: 1 vCPU, 1 GB RAM, 25 GB SSD.
Installing nginx
apt update && apt install nginx -y
systemctl enable nginx
Site configuration
Create a directory for your site and set up an nginx server block. Point root to the built site folder, configure try_files for SPA mode.
HTTPS via Let’s Encrypt
apt install certbot python3-certbot-nginx -y
certbot --nginx -d your-site.com
Certificate auto-renews.
Auto-deploy via GitHub Actions
In the Free version, GitHub Actions builds the site on push and sends files to your VPS via rsync. Just git push.
Pro version includes advanced CI/CD with health checks, rollbacks, and monitoring. Go to Pro →