Caddy
Caddy is the doorkeeper of this setup. Every visit to greefhorst.net arrives at one program that decides which of the other pieces should answer, and that program is Caddy.
It has two jobs. The first is the padlock. A certificate is what proves to your browser that the site is really the site, and certificates expire — traditionally after three months, traditionally renewed by hand, traditionally forgotten until a browser starts warning. Caddy asks for its own certificate, renews it before it runs out, and sends plain http to https without being asked. You point a name at the machine, start Caddy, and it works.
The second job is routing. This machine answers to several names: the site, the admin panel, a couple of others. Caddy reads the name in the request and hands it to the right place, adding the information the receiving program needs about how the visitor arrived. Its configuration file is short enough to read in one sitting — one block per name — and a reload swaps it without dropping anyone mid-page.
What earned it a place here was the log. Every request is written as structured data, one line per visit, which the container platform collects and a simple query can read — including how many visits went to the admin panel's address rather than to the site. "Which pages were asked for, from which countries" stops being a small project of its own and becomes a question.
Two details that cost time. When something in front of Caddy already handles the padlock — as here, where an existing web server on the same machine does — the automatic part has to be switched off explicitly, and an internal block has to be told the scheme, because a bare name defaults to the secure port. And the header that carries the original scheme gets rewritten by the proxy in between, so Caddy has to put it back or the admin panel starts writing http:// addresses into an https:// page.
One practical warning: replacing the configuration file while the container runs leaves it reading the old copy, and the reload appears to do nothing. Write into the file instead, or restart the container.
It is not the only choice, and a doorkeeper you already run is usually the right one. But for "route three names, get certificates, log in a way you can query", one program and twenty lines is hard to beat.