Simple setup (built-in Forgejo accounts): run Forgejo on port 3000 using its normal login, then share it into your pen:
$ ~/hogman share git 3000
Optional — let git push / git pull reach it through Hogman's local proxy port:
$ git config --global http.https://git.<your-pen>.pens.hogman.network/.proxy http://127.0.0.1:<port>
Automatic sign-in (sealed mode only): never enable reverse-proxy sign-in on a plain local port (any local program on the machine could claim to be the Forgejo admin). Instead, run Forgejo inside the sealed 3-container stack (network_mode: none, no host ports, --forward-tcp=127.0.0.1:3000, --identity-headers on hogman-sidecar via unix:///run/hogman-in/app.sock):
$ gh attestation verify oci://ghcr.io/celtiberi/hogman-sidecar@sha256:b14889cf685f9ea867b025a637e8f8bee1a7eca01a06e023999e56b8ab6293d8 --repo celtiberi/hogman --signer-workflow celtiberi/hogman/.github/workflows/release.yml
$ export HOGMAN_SIDECAR_IMAGE=ghcr.io/celtiberi/hogman-sidecar:v2026.11.27-cbf1c8f@sha256:b14889cf685f9ea867b025a637e8f8bee1a7eca01a06e023999e56b8ab6293d8
Inside that sealed container, add to app.ini:
[service]
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true
[security]
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.1/8,::1/128
REVERSE_PROXY_AUTHENTICATION_USER = X-Hogman-Handle
Security note: Auto-registration maps a pen handle to any existing Forgejo account with the same username (including admins). Enable it only on a fresh instance — or after checking no existing username overlaps — and remember whoever controls pen membership controls those Forgejo accounts.