All postsInspect live topology

Expanding My Homelab: Proxmox, Cloudflare Zero Trust, Nginx & Raspberry Pi

How a server built from scratch around Proxmox and a standalone Raspberry Pi became a zero-trust personal data center.

  • Proxmox
  • Cloudflare Zero Trust
  • Nginx
  • Docker
  • Raspberry Pi
  • AdGuard Home
  • Homelab
  • DevOps

From a scratch-built server to a personal data center

What started in July 2023 as a server built from scratch quickly became my main environment for learning Linux administration, virtualization, networking, and day-to-day infrastructure operations. Instead of running isolated one-off containers on a laptop, I built the machine from the ground up around Proxmox VE so I could cleanly separate virtual machines, snapshots, storage, and Docker workloads.

In my original Medium write-up ("Expanding My Homelab: From Hobby to Versatile Server Solution"), the goal was simple: build a dependable home server from scratch and grow it with real workloads. Since then, the architecture evolved from a single box into a two-node setup—a primary Proxmox server paired with a standalone Raspberry Pi—connected securely to the public Internet through Cloudflare Zero Trust.

Interactive diagram: You can inspect every hop of this live topology—including direct Cloudflare routes, Nginx-proxied paths, and the standalone Raspberry Pi—directly in the interactive blueprint on the homepage.

Zero-trust ingress without opening home router ports

Exposing a residential network directly to the Internet means dealing with dynamic IPs, port-forwarding rules, and automated scanners hitting your router around the clock. Rather than opening inbound ports on the home router, all public ingress passes through Cloudflare Zero Trust using an outbound tunnel (cloudflared).

Because the tunnel initiates outbound connections from inside the homelab to Cloudflare's edge, internal IP addresses never need to be exposed publicly. Cloudflare Access adds identity and policy enforcement at the edge before traffic ever reaches my home hardware.

  • No exposed residential IP or inbound router port-forwarding rules for web services.
  • Centralized TLS termination and hostname routing managed at the Cloudflare edge.
  • Clean separation between public hostnames (such as dimitarterziev.com services) and private LAN addressing.

Proxmox Server: direct Cloudflare tunnels vs. Nginx reverse proxy

Early versions of a homelab often route every single container through one reverse proxy out of habit. As my stack matured, I simplified the Proxmox server so each service only gets the hops it genuinely needs.

Workloads that speak clean HTTP directly to the tunnel—Nextcloud for personal files and sync, n8n for workflow automation, and self-hosted GitHub Actions CI/CD runners—connect straight from Cloudflare Zero Trust to their Docker services on the Proxmox host without an unnecessary extra proxy hop.

Nginx Reverse Proxy sits specifically in front of Immich (my self-hosted photo library) and my Private Game Servers (Minecraft / Terraria). Keeping Nginx scoped to those workloads makes tuning explicit: Immich benefits from custom upload body limits, long proxy timeouts, and WebSocket upgrade headers for mobile photo backups, while game server routing stays isolated from general web apps.

nginx // immich-upstream.conf (sanitized)
server {
  listen 80;
  server_name photos.internal;

  # Allow large raw photo & video uploads from mobile clients
  client_max_body_size 50000M;

  location / {
    proxy_pass http://immich_server:2283;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_read_timeout 600s;
    proxy_send_timeout 600s;
    send_timeout 600s;
  }
}
  • Direct via Cloudflare Zero Trust: Nextcloud (Docker · Files & Sync), n8n (Docker · Automation), Self-Hosted CI/CD Runners (GitHub Actions).
  • Via Cloudflare Zero Trust → Nginx Reverse Proxy: Immich (Docker · Photo Library), Private Game Servers (Docker · Minecraft / Terraria).

Separating the Raspberry Pi into a standalone server

One of the most practical operational lessons from running a homelab is avoiding a single point of failure for critical local services. When DNS or auxiliary workloads live inside the same hypervisor you experiment on, a Proxmox kernel update or VM reboot takes down name resolution across the whole house.

To solve that, I separated my Raspberry Pi into a dedicated standalone ARM server connected to Cloudflare Zero Trust. It runs AdGuard Home for network-wide DNS filtering and ad-blocking alongside additional dedicated game servers, completely independent from the main Proxmox host.

  • AdGuard Home stays online even when the Proxmox host is rebooted or undergoing maintenance.
  • Additional game servers run on dedicated lightweight hardware without competing for Proxmox VM RAM or disk I/O.
  • Managed cleanly via its own Cloudflare Zero Trust route rather than chaining through the Proxmox node.

How homelab operations translate to enterprise DevOps

Running real workloads that you and your friends rely on every day builds instincts you cannot get from tutorials alone. Debugging why a containerized service refuses connections, inspecting systemd units with journalctl, testing listening sockets with nc, and tracing firewall or reverse proxy timeouts are the exact same fundamentals used in hybrid enterprise Linux and Kubernetes environments.

Keeping the topology honest—removing unnecessary proxy hops, isolating critical DNS onto standalone hardware, and enforcing zero-trust ingress—turns a home lab from a weekend experiment into practical production engineering experience.