Move Gitea to its own LXC; keep a forwarder on stpvm
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:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user