Move Gitea to its own LXC; keep a forwarder on stpvm
Test and deploy / test (push) Successful in 17s
Test and deploy / deploy (push) Successful in 2s

Gitea (git, Actions, the registry) now runs from gitea/docker-compose.yml
on a separate Proxmox LXC with its own Postgres, deployed by hand. The
stack's gitea service becomes an haproxy TCP forwarder from stpvm's 3000
and 2222 to the LXC (GITEA_UPSTREAM), under the same container name, so
Caddy, the backend feed, usaco, the runner, Renovate and every repo's CI
keep their addresses. Webhooks from the LXC reach Caddy over the LAN.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 15:42:44 +00:00
co-authored by Claude Opus 5.5
parent aa4c3b1a67
commit 10606f4c77
13 changed files with 381 additions and 148 deletions
+2 -2
View File
@@ -327,8 +327,8 @@ handle /jobs/* {
# Its own container (the usaco repo's site/), shaped like /jobs/: SPA and API
# under one prefix that is NOT stripped, and no gate, because most of it is
# public and the app checks the session itself for the admin's edits. Gitea's
# push webhook does not come through here: it calls the container directly
# on the Docker network.
# push webhook (/usaco/api/hooks/gitea) comes through here too, from the
# Gitea LXC over the LAN; it is signed with USACO_WEBHOOK_SECRET.
handle /usaco/* {
import limit api 30 1s
reverse_proxy usaco:8080 {