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]>
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# =============================================================================
|
|
# gitea/.env.example — variables for gitea/docker-compose.yml (the Gitea LXC).
|
|
#
|
|
# Copy to gitea/.env on the LXC and fill in. Separate from the site's .env on
|
|
# purpose: the LXC holds Gitea's secrets and nothing of the site's.
|
|
# NOTHING IN THIS FILE HAS A REAL VALUE.
|
|
# =============================================================================
|
|
|
|
# Gitea's own Postgres (the gitea-db service). Created on first init.
|
|
GITEA_DB_NAME=gitea
|
|
GITEA_DB_USER=gitea
|
|
GITEA_DB_PASSWORD=
|
|
|
|
# Passed as GITEA__section__KEY overrides so the committed app.ini.template
|
|
# can keep those fields blank. Moving from stpvm, copy the existing values
|
|
# from the site's .env (they had the same names there); a fresh install
|
|
# generates each as a long random string.
|
|
GITEA_INTERNAL_TOKEN=
|
|
GITEA_LFS_JWT_SECRET=
|
|
GITEA_OAUTH2_JWT_SECRET=
|
|
|
|
# This LXC's Tailscale MagicDNS name (e.g. stpgit.tailf20278.ts.net), shown in
|
|
# Gitea's SSH clone URLs. Becomes Gitea's SSH_DOMAIN and DOMAIN.
|
|
GITEA_SSH_DOMAIN=
|
|
|
|
# The site's public domain (no www), and stpvm's LAN IP, where Caddy listens.
|
|
# Webhooks to https://www.DOMAIN/... are sent there directly (see the compose
|
|
# file's extra_hosts).
|
|
DOMAIN=
|
|
EDGE_IP=
|