Reach Gitea as git.DOMAIN on the LAN and drop the forwarder
Test and deploy / test (push) Has been cancelled
Test and deploy / deploy (push) Has been cancelled

Everything on stpvm now reaches the Gitea LXC by its own name, GITEA_HOST
(git.DOMAIN), pinned to its LAN IP: by extra_hosts in caddy, backend, usaco
and silverbullet-git, and by /etc/hosts on the host for the runner, CI and
Renovate. Public DNS for that name is Cloudflare, which only carries HTTPS,
so the pin is what makes :3000 and :2222 work. The haproxy forwarder that
kept localhost:3000/2222 working is gone, so stpvm no longer publishes
those ports. The deploy and Renovate workflows and the runner script use
the new name; the docs and the rollback notes follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 17:28:58 +00:00
co-authored by Claude Opus 5.5
parent 180f6ac8b8
commit ed87d04e04
12 changed files with 90 additions and 142 deletions
+7 -5
View File
@@ -54,11 +54,13 @@ POSTGRES_TRACKER_PASSWORD=
# --- Gitea -------------------------------------------------------------------
# Gitea runs in its own LXC (the adamf/stpgit repo, whose variables are in its
# .env.example). This stack's `gitea` service is a TCP forwarder to it.
# GITEA_HOST is that forwarder's container name AND the upstream host for
# Caddy, the backend's feed and usaco. GITEA_UPSTREAM is the LXC's LAN IP
# (an IP, not a name: Docker's DNS cannot see LAN or tailnet names).
GITEA_HOST=gitea
# .env.example); this stack has no Gitea container. GITEA_HOST is its public
# name, used on its plain-HTTP port GITEA_PORT by Caddy's /v2/, the backend's
# feed and usaco, and as the SSH host for silverbullet-git. GITEA_UPSTREAM is
# the LXC's LAN IP, which those containers pin GITEA_HOST to (extra_hosts), so
# the hop stays on the LAN instead of going to Cloudflare. On the host itself
# (the runner, CI, Renovate) the same pin is a line in /etc/hosts.
GITEA_HOST=git.adam-french.co.uk
GITEA_PORT=3000
GITEA_UPSTREAM=