How this site works
This site is also my DevOps portfolio. The page you're reading is simple on purpose. The platform underneath is the point. Below is what exists, the files that show it, and what is still planned.
Where it runs today: visitors are served by my home server, with Cloudflare Pages as the fallback. The same hardened container runs at home behind its own tunnel, and a small failover Worker in front of danielaburquez.com asks home first and switches to Pages if home does not answer. I tested that by stopping the server on purpose.
- Built: Static site, no moving parts
- Built: Hardened container
- Built: Strict browser security headers
- Built: Secret scanning before every commit
- Built: Pinned versions
- Built: DNS as code
- Built: Failover to Pages, tested
- Built: Failover on the real address
- Built: A second copy at home, behind its own tunnel
- Planned: Kubernetes at home
- Planned: Automated checks and signed images
- Planned: GitOps deploys
- Planned: Cluster hardening
- Planned: Monitoring and a public status page
- Planned: A tested rebuild
9 of 15 built and tested, as of 24 November 2026.
The request path
Diagram. A visitor's request reaches a Cloudflare Worker, which asks the home server first. If the home server does not answer within two seconds, the Worker serves the same page from Cloudflare Pages instead. When the home server comes back, requests go to it again.
Roadmap
- Phase 1Built
The site and its container
Static site, no moving parts
Pages are built into plain files ahead of time. Nothing is generated per request, so there is far less to attack and to keep patched.
See the evidence
Dockerfile RUN npm run build … FROM nginxinc/nginx-unprivileged:1.30.6-alpine COPY --from=build /app/dist /usr/share/nginx/htmlHardened container
Runs as a non-root user with a read-only filesystem, no extra Linux privileges, and memory and process limits.
See the evidence
Dockerfile USER 101README.md --read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m \ --cap-drop=ALL --security-opt no-new-privileges \ --pids-limit 100 --memory 64m \Strict browser security headers
A Content-Security-Policy that allows only this site's own files, plus HSTS and the usual anti-framing and referrer headers. No third-party scripts or fonts.
See the evidence
security-headers.conf add_header Content-Security-Policy "default-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'" always; add_header Strict-Transport-Security "max-age=31536000" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "DENY" always;Secret scanning before every commit
A pre-commit hook blocks any commit that looks like it contains a password, token or key.
See the evidence
.githooks/pre-commit if ! command -v gitleaks >/dev/null 2>&1; then … exec gitleaks git --pre-commit --staged --redact --verbosePinned versions
Base images and dependencies are locked to exact versions, so builds stay predictable.
See the evidence
Dockerfile FROM node:22.23.5-alpine AS build … RUN npm ci … FROM nginxinc/nginx-unprivileged:1.30.6-alpine
- Phase 2Built
DNS and failover as code
DNS as code
The Cloudflare DNS records for this domain are described in Terraform, in a private repository, and each was imported as it already was. Comparing the files with the live zone reports no differences. Records that Cloudflare itself owns, such as the email signing key, are left out on purpose, so the two never fight over them.
Failover to Pages, tested
A small Cloudflare Worker asks the home server first, and serves the same page from Cloudflare Pages if home errors or does not answer within two seconds. I first tested it on a separate test address by stopping the container, then the tunnel: the page kept loading each time, and went back to home on restart.
Check it yourself
Run in a terminal curl -sI https://failover-test.danielaburquez.com | grep -i x-served-byPrints "x-served-by: home" normally, and "x-served-by: pages" while the home server is unreachable.
Failover on the real address
danielaburquez.com and www now go through the failover Worker: the home server answers first, and Cloudflare Pages takes over if it does not. I repeated the stop test on the real address, with the container and then the tunnel stopped, and the page kept loading from Pages each time. The Worker is also set to fall straight through to Pages if it ever fails itself.
Check it yourself
Run in a terminal curl -sI https://danielaburquez.com | grep -i x-served-byPrints "x-served-by: home" normally, and "x-served-by: pages" while the home server is unreachable.
- Phase 3In progress
The home server behind a tunnel
A second copy at home, behind its own tunnel
The same hardened container also runs on my home server. It publishes no ports and is reached only through a dedicated Cloudflare Tunnel, kept separate from the one my other home services use, so a mistake here cannot take them down.
Kubernetes at home Planned
k3s on the home server. Held back until that machine has memory to spare: it already runs other services, and Kubernetes on top would push it into swapping.
Show 5 planned phases
- Phase 4Planned
Automated checks and signed images
Tests, vulnerability scans and a software bill of materials on every change, with the built image cryptographically signed.
- Phase 5Planned
GitOps deploys
Argo CD applies what is in Git, so a deploy is a reviewed commit rather than a manual step.
- Phase 6Planned
Cluster hardening
Admission policies, network policies, restricted pod security and encrypted secrets.
- Phase 7Planned
Monitoring and a public status page
Metrics, logs and alerts, with a status page that stays up when the home server does not.
- Phase 8Planned
A tested rebuild
Backups, and a timed destroy-and-rebuild drill, published with the real result.
Decisions
Static pages, not a server app
The pages are built ahead of time, so nothing runs per visit. There is far less to attack and to keep patched.
A locked-down container
It runs as a non-root user with a read-only filesystem and no extra Linux privileges, which limits what a mistake or an attack could do.
A tunnel instead of open ports
The copy at home publishes no ports. A Cloudflare Tunnel, which only dials out, is the one way in, and it is separate from the tunnel my other home services use.
Home first, Pages as the fallback
The home server is the primary host and Cloudflare Pages is the safety net, because a fallback only means something when there is a primary to fall back from.
Plain Docker before Kubernetes
The home server is already busy, and Kubernetes on top would push it into swapping. So the container runs on plain Docker for now, and Kubernetes waits until there is memory for it.
Leave Cloudflare's own records alone
Terraform owns the records that never change. The email signing key belongs to Cloudflare, which may rotate it, so managing it by hand would break outgoing mail the day it does.
Changes as reviewed commits
Planned. Argo CD applies what is in Git, so a deploy is a commit someone reviewed, not a manual step.
Nothing listed until it works
An item moves from planned to built only once it works, and the date at the top changes in the same edit.
Next
Questions about any of this, or a project in mind?