Domains and HTTPS
An edge is a server with the proxy role. It runs Caddy, terminates TLS
with automatic Let’s Encrypt certificates, and forwards each request by its
Host header. The panel server is your first edge when you install with
“use this server for your projects”.
browser ──HTTPS──▶ edge (Caddy)
├─ shop.example.com ──▶ 127.0.0.1:8101 (Podmaker workload on the edge)
├─ blog.example.com ──▶ 10.0.0.5:8080 (workload on another server, private network)
└─ old.example.com ──▶ 10.0.0.9:80 (existing site, not managed: --external)
Add a domain
- In your DNS, point the domain at the edge’s public IP (A/AAAA record).
For many apps, a wildcard such as
*.apps.example.comworks well. - Register it on the edge:
podmaker domain create shop.example.com --edge podmaker-control-plane
Route it
# an app on the same server, published on loopback (see projects: ports "127.0.0.1:8101:8080")
podmaker domain route shop.example.com --upstream 127.0.0.1:8101
# an existing site Podmaker does not manage
podmaker domain route old.example.com --external --upstream 10.0.0.9:80
- Several
--upstreamflags load-balance across targets. - The original
Hostheader is passed to the upstream. - Upstreams can be TLS (API:
upstream_tls,upstream_server_name), for traffic that leaves a private network. - The certificate is requested on the first HTTPS request after DNS points at the edge.
In the panel: Domains → Add domain, then Add route. The bin icon next to a route removes it from the edge; a domain without routes can be deleted. Route types are labels: workload for apps Podmaker deploys, external for sites it does not manage; Caddy treats both the same. Add one route per domain (two routes to the same upstream are redundant).
Check before switching DNS
Moving a live site? Create the route first and test it through the edge while DNS still points at the old server:
podmaker domain probe old.example.com # requests the edge with Host: old.example.com
The API endpoint GET /domains/{id}/dns-check compares the domain’s DNS with
the edge’s IP. Switch DNS when the probe succeeds. To go back, point DNS at
the old IP again.
Rules that keep sites apart
- A host without a route gets a 404 from the edge. It is never forwarded to another site.
- Podmaker only edits routes it created (
imp-route-*). The panel’s own routes and anything else in Caddy are left alone. - Upstream ports should not be open to the internet. Publish apps on
127.0.0.1when they run on the edge, or use the provider’s private network (Hetzner Cloud Network, VPC) between edge and app servers.
Let Podmaker set DNS (Cloudflare)
Domains → Connect Cloudflare. Create an API token with the Edit zone DNS template for your domains and paste it; it is checked and stored encrypted. Then:
-
Set DNS on an address shows exactly what changes before anything happens:
- a DNS-only A record to the edge server;
- any conflicting A/AAAA/CNAME records it would replace.
Other records (TXT, MX …) are never touched.
-
The New project wizard creates the A record by itself when nothing else exists for that name. Otherwise it leaves the decision to you.