feat: refresh token validity

This commit is contained in:
knoflook 2025-02-12 14:34:11 +01:00
parent 8ffd4d33be
commit 0bbac9ed9c
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,11 @@ SECRET_SECRET_KEY_VERSION=v1 # length=64
# GITEA_ACCOUNT_LINKING=replace-me
# GITEA_OAUTH2_CLIENT_ENABLED=replace-me
# Lifetime of an OAuth2 refresh token in hours, prolly no need to edit. We
# were hitting issues with infrequently pushed to repos that were not picked
# up by drone after a month of inactivity, hence the option.
# GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME=730
# Indexer (for issue search)
# GITEA_REPO_INDEXER_ENABLED=false
# GITEA_ISSUE_INDEXER_TYPE=db

View File

@ -51,6 +51,7 @@ services:
- GITEA_ALLOWED_USER_VISIBILITY_MODES
- GITEA_DEFAULT_ORG_VISIBILITY
- GITEA_REQUIRE_SIGNIN_VIEW
- GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME
volumes:
- data:/var/lib/gitea
- config:/etc/gitea