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:
@@ -38,6 +38,7 @@ services:
|
|||||||
GITEA__service__DISABLE_REGISTRATION: ${GITEA_DISABLE_REGISTRATION:-false}
|
GITEA__service__DISABLE_REGISTRATION: ${GITEA_DISABLE_REGISTRATION:-false}
|
||||||
GITEA__actions__ENABLED: ${GITEA_ACTIONS_ENABLED:-true}
|
GITEA__actions__ENABLED: ${GITEA_ACTIONS_ENABLED:-true}
|
||||||
GITEA__security__INSTALL_LOCK: "true"
|
GITEA__security__INSTALL_LOCK: "true"
|
||||||
|
GITEA__session__PROVIDER: db
|
||||||
GITEA__webhook__ALLOWED_HOST_LIST: control-plane
|
GITEA__webhook__ALLOWED_HOST_LIST: control-plane
|
||||||
ports:
|
ports:
|
||||||
- "${GITEA_HTTP_BIND:-0.0.0.0}:${GITEA_HTTP_PORT:-3000}:3000"
|
- "${GITEA_HTTP_BIND:-0.0.0.0}:${GITEA_HTTP_PORT:-3000}:3000"
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ GITEA_DISABLE_REGISTRATION=true
|
|||||||
GITEA_ACTIONS_ENABLED=false
|
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:
|
Start the services and install the Hop-native Gitea assets:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user