← Infrastructure & AI
samritchie.dev Infrastructure
Self-hosted web platform on Hetzner with automated CI/CD, Hugo static sites, and containerized services — all managed through GitHub.
Overview
A complete self-hosted web infrastructure running on a Hetzner VPS. Multiple static sites built with Hugo, deployed automatically via GitHub Actions, served through Nginx with SSL.
Architecture
- Server: Hetzner CX22 running Ubuntu 24.04
- Web Server: Nginx as reverse proxy and static file server
- Sites: Multiple Hugo-generated static sites for different subdomains
- CI/CD: GitHub Actions builds and deploys on every push to main
- SSL: Let’s Encrypt via Certbot with automatic renewal
- Security: UFW firewall, fail2ban, SSH key-only authentication
What I Learned
Building this from scratch taught me the full stack of web infrastructure — DNS configuration, SSL certificates, firewall rules, and the importance of automation. Every site update is now a single git push.