Files
stpweb/gitea/.env.example
T
adamfandClaude Opus 5.5 fc777ba8b2
Test and deploy / test (push) Successful in 21s
Test and deploy / deploy (push) Successful in 2s
Add a cloudflared connector for git.DOMAIN on the Gitea LXC
Gitea gets its own remotely managed Cloudflare tunnel, run beside it on the
LXC, so public HTTPS for git.DOMAIN no longer has to pass through stpvm. It is
a separate tunnel from the site's, since a tunnel's connectors share all its
hostnames. It sits behind the `tunnel` profile until git.DOMAIN is the
canonical address, so a routine `docker compose up -d` does not publish it
early.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 16:33:42 +00:00

36 lines
1.5 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=
# Token of Gitea's own Cloudflare tunnel (NOT the site's CLOUDFLARE_TUNNEL_TOKEN),
# from Zero Trust -> Networks -> Tunnels -> the stpgit tunnel. Used by the
# cloudflared service (profile `tunnel`), which serves https://git.DOMAIN.
GITEA_TUNNEL_TOKEN=