Self-Hosted Infrastructure
2025 – presentComplete self-hosted platform on Hetzner VPS with custom CI/CD, SSO, reverse proxy, and multiple production web applications.
6+ production apps deployed and running
60-second deploy cycle from git push to live
Zero-downtime deployments with atomic swaps
The Challenge
Needed a reliable, low-cost way to host and deploy multiple web applications with automatic builds, HTTPS, authentication, and monitoring, without relying on expensive cloud services.
Approach
Built a custom CI/CD pipeline using bash scripts and systemd that polls GitHub every 60 seconds, builds via git archive, and deploys via rsync with automatic rollback on failure. Added Authelia for SSO, Caddy for reverse proxy with auto HTTPS, and self-hosted Supabase for PostgreSQL.
Key Highlights
- Custom CI/CD: systemd polling, git archive builds, rsync deploys, automatic rollback
- Authelia SSO protecting admin services
- Caddy reverse proxy with automatic HTTPS for all subdomains
- Self-hosted Supabase (PostgreSQL) and build monitoring dashboard
Technologies
BashsystemdrsyncCaddyAutheliaSupabaseDocker