Projects

Infrastructure · since 2026

edgegate

The edge of my infrastructure as an API: a reverse proxy with automatic certificates, port forwarding over WireGuard and deployments on every machine — driven by one interface that the UI, scripts and AI agents all use.

Home networkVisitorsVPSnginx · TLSedgegateWireGuardLeaderless meshDocker-HostAgentwebapidbnew edgegateServersecond node, hands out specsFinance VMAgentdashdataUI · scripts · AI agentsone API
Status
In production
Period
since 2026
Area
Infrastructure
Role
Design, development, operations
~190
DNS providers for certificates (DNS-01)
30 s
until drifted firewall rules are repaired
1
container: Go binary including the UI
GoConnect RPCSvelteKitnginxWireGuardiptables

What it is about

For years my public server ran Nginx Proxy Manager: domains set up by hand, port forwarding in a second UI, firewall rules from the shell. edgegate replaces all of that with one API. nginx still serves the traffic, but edgegate writes its whole configuration, obtains the certificates from Let's Encrypt and supervises both. Public TCP and UDP ports are passed through a WireGuard tunnel to machines at home.

edgegate now also manages deployments on every machine in my home network: a push to Gitea builds an image, edgegate starts the new version next to the old one and switches over once it is healthy. This website reaches its server the same way.

Features

A tour of the UI. Addresses and domain names are blacked out in the images; click to enlarge.

Overview

What needs attention comes first: open problems, domains not answering, deployments, backups and certificates. Below are the latest deployments, backups and events.

Overview with open problems, latest deployments, backups and events

Domains and certificates

Every domain with its target (container, agent or address), whether it is public or LAN only, with certificate, access control, requests per minute, error rate and response time. edgegate obtains the certificates from Let's Encrypt itself, wildcards via DNS-01.

Domains with target, reachability, certificate, access and traffic (names blacked out)

Port forwarding

Public TCP and UDP ports go through the WireGuard tunnel to machines at home, such as game servers, with connections and data volume per forward.

Port forwards from the VPS to game servers on the home network

Mesh and topology

Nodes and machines are grouped by site and zone. The topology shows how the members see each other, with the measured latency of every link.

Sites and zones with edgegate nodes and machines

Topology: links between the VPS, the home network and machines with latency

Deployments

Every deployment with version, containers, domains and history. A new image from Gitea starts next to the old version; edgegate switches over once it is healthy and can go back to any older version.

Deployment of this website: version, container, domain and image origin

How it is built

  • One API for everything. Every operation is a Connect RPC call (JSON over HTTP, gRPC or gRPC-Web). The web UI uses the same interface as scripts and agents; an OpenAPI description and a guide for agents live under /api.
  • Safe changes. Every nginx change is checked with nginx -t before reloading; a rejected configuration never goes live. Firewall rules live in their own chains, are applied atomically, rolled back on failure and reconciled every 30 seconds — Docker, ufw and mailcow rules stay untouched.
  • Leaderless mesh. Several edgegate nodes (the VPS and machines on the LAN) share one configuration over WireGuard. Every node can change everything and keeps working on its own when the others are gone.
  • Integrations. Certificates and a change-event log are delivered to Consul and Kafka (CloudEvents), with retry and catch-up after outages; sign-in through authentik outposts.
  • One container. Go backend and SvelteKit UI (shadcn-svelte) in a single image, UI in English and German, usable on a phone.

What I take away

The key decision was not to treat the UI as a special case: because everything goes through the same API, I can hand routine tasks to a script or an AI agent just as well.