Reach Gitea as git.DOMAIN on the LAN and drop the forwarder
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:
+7
-5
@@ -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=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user