Self Hosting Hugo
Why I Decided to Self-Host
I’ve been working on rockcampbell.com, and decided I wanted full control. That meant running Hugo on my own home server, behind Nginx Proxy Manager, using Docker — and pointing my domain directly to it.
What followed was a surprisingly long series of gotchas…
Building the Hugo Site
- Used the PaperMod theme
- Installed Hugo Extended manually (because the Arch repo version was too old)
- Created my first post (and later deleted it)
Docker Setup
- Used
nginx:alpine
to serve the public folder - Mounted the
public/
folder using Docker Compose - Exposed it to Nginx Proxy Manager via the shared
web
network
Nginx Proxy Manager
- Configured the domain
rockcampbell.com
- Issued SSL certificate via Let’s Encrypt
- Initial requests worked, but subpages failed over HTTPS
Fix: The issue was a misconfigured baseURL
in hugo.toml
, and SSL wasn’t working until I reissued the cert.