Persist Gitea sessions across deployments

Hop-State: A_06FNB8FT1R0PTP3714DKX4R
Hop-Proposal: R_06FNB8F6MX8E54KXGS48WK8
Hop-Task: T_06FNB715NCG0M3SVDJAGHY8
Hop-Attempt: AT_06FNB715NCK5MKAVH59TE0G
This commit is contained in:
2026-07-12 02:21:46 -07:00
committed by Hop
parent 6be764ec6e
commit ff25f26b6c
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ services:
GITEA__service__DISABLE_REGISTRATION: ${GITEA_DISABLE_REGISTRATION:-false}
GITEA__actions__ENABLED: ${GITEA_ACTIONS_ENABLED:-true}
GITEA__security__INSTALL_LOCK: "true"
GITEA__session__PROVIDER: db
GITEA__webhook__ALLOWED_HOST_LIST: control-plane
ports:
- "${GITEA_HTTP_BIND:-0.0.0.0}:${GITEA_HTTP_PORT:-3000}:3000"
+4
View File
@@ -18,6 +18,10 @@ GITEA_DISABLE_REGISTRATION=true
GITEA_ACTIONS_ENABLED=false
```
Keep `GITEA__session__PROVIDER=db` in the Compose service. Gitea otherwise
defaults to in-memory sessions, which signs every user out whenever the
container restarts.
Start the services and install the Hop-native Gitea assets:
```sh