↓ Skip to main content
This Site
  1. Projects/

This Site

Status: Running · Stack: Hugo, Blowfish, GitHub Actions, GHCR, Docker Compose, Proxmox LXC, Cloudflare Tunnel · Repo: github.com/Delajeng/personal-site

Goal
#

A personal site for projects, my resume and a blog, where publishing a page is just a Git push. It had to be simple, fully open source and self-hosted in my homelab, with nothing built or stored on my laptop except the Markdown and Git history.

Architecture
#

flowchart LR
  laptop["Laptop
VS Code, Markdown"] -- "git push" --> gh["GitHub repo"] gh --> actions["GitHub Actions
Hugo build + Docker image"] actions --> ghcr["GHCR
personal-site:latest"] ghcr -- "cron pull every 5 min" --> lxc["Proxmox LXC
Docker Compose"] lxc --- site["site
nginx :8080"] lxc --- cf["cloudflared"] cf -- "outbound tunnel" --> edge["Cloudflare edge"] edge --> visitor["Visitor"]

I write and commit in VS Code. Every push to main triggers a GitHub Actions workflow that builds the site with Hugo inside a two-stage Docker build and publishes an nginx image to the GitHub Container Registry. On the LXC, a cron job checks every five minutes for a newer image and swaps it in. Visitors reach the site container through a Cloudflare Tunnel that dials out from the LXC, so no ports are open on my router or the container.

Stack
#

LayerToolWhy this one
ContentMarkdown + HugoFast static builds, content stays as plain files in Git
ThemeBlowfishClean, documented, FOSS; projects, resume and blog fit without custom layouts
CIGitHub ActionsBuilds on every push; the laptop never needs Hugo or Docker
RegistryGHCRLives next to the repo; a public package needs no pull credentials
RuntimeDocker Compose in a Proxmox LXCTwo containers, lightweight, easy to rebuild
UpdatesCron + update.shPulls the new image and recreates the container, nothing more
IngressCloudflare TunnelOutbound-only, TLS at the edge, no port forwarding

Key decisions
#

  • Blowfish over Hextra. I started with Hextra, but its docs-first layout didn’t suit a mix of projects, a resume and a blog.
  • The image is built in CI, not on the server. The LXC never checks out the repo or runs Hugo. It only pulls a finished image, so the server stays simple and replaceable.
  • A cron script instead of Watchtower. One short script does the only job I need. It’s one less container to run and trust.
  • Kubernetes and ArgoCD dropped for now. A K3s and GitOps setup would work, but it’s a lot of machinery for one static site. The container image keeps that move open for later.
  • Its own domain and a Cloudflare Tunnel, not my existing reverse proxy. The site is public and separate from the rest of the homelab, and the tunnel means nothing at home is reachable from the internet.
  • The only secret lives on the LXC. The Cloudflare tunnel token sits in a chmod 600 .env file. The repo is public and holds nothing sensitive.

What’s next
#

  • Move the site to a K3s cluster with GitOps when the homelab has one.
  • Add a staging preview for pages before they go live.

Code
#

Related