DEVOPS / DEPLOY

VPS and nginx — Server Setup for Static Sites

Choosing a VPS provider, installing nginx, configuring gzip, caching for TTFB under 50ms, and security headers.

Choosing a VPS Provider

For static sites, any VPS from $4-6/month works well. DigitalOcean, Hetzner, and Vultr are popular choices. GitHub CMS requires minimal resources: Ubuntu 22.04 LTS, 1GB RAM, and 25GB SSD is more than sufficient for hundreds of static pages.

Nginx Configuration

Nginx serves static files efficiently. Key optimizations: enable gzip compression for text assets, set aggressive caching for immutable assets (30 days), and configure security headers (X-Content-Type-Options, X-Frame-Options). For SSL, use Certbot with Let's Encrypt for free certificates.

Set Up Your Server Today

Follow the complete deployment guide

View Guide