--- type: Decision title: Own nginx reverse proxy instead of Cloudflare Tunnel description: The apex domain points straight at the home server; an nginx reverse proxy installed by Terraform is the only entry. tags: [decision, networking, nginx, terraform] status: stable generated: { by: claude-code/claude-opus-5-5, at: 2026-10-14T00:00:00Z } verified: { by: human:noel, at: 2026-10-14T00:00:00Z } --- # Decision No tunnel, no managed entry service. A DNS A record points the apex domain at the home server directly; nginx (installed and configured by Terraform, with a certbot certificate) terminates TLS and forwards to the gateway Service. # Why - A managed tunnel outsources exactly the part Noel wants to learn: DNS, TLS, proxies and what happens between a browser and a container. - No dependency on a third party. The entry path is Noel's own code and config. - nginx on the same 4 GB server costs a few MB, well inside the budget. # Consequences Inbound ports 80 and 443 must be reachable at the home server (router port-forward, static IP or DDNS). This is a solved-but-open question — see [open questions](/decisions/open-questions.md).