feat: configurable session provider #31

Merged
fauno merged 3 commits from session into main 2026-06-05 13:51:00 +00:00
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,7 @@ GITEA_ENABLE_PUSH_CREATE_USER=false
GITEA_ENABLE_PUSH_CREATE_ORG=false
GITEA_LFS_START_SERVER=false
GITEA_MAX_CREATION_LIMIT=-1
GITEA_SESSION_PROVIDER=db
fauno marked this conversation as resolved Outdated
Outdated
Review

Should we set the default to db?

Should we set the default to db?

Yes please, think of the children! All those logins, all those moments in time. Lost, forever.

Yes please, think of the children! All those logins, all those moments in time. Lost, forever.
Outdated
Review

done!

done!
GITEA_CACHE_ADAPTER=memory
GITEA_CACHE_HOST=
GITEA_CACHE_ITEM_TTL=16h

View File

@ -127,6 +127,9 @@ LEVEL=WARN
STACKTRACE_LEVEL=None
ENABLE_XORM_LOG=false
[session]
PROVIDER = {{ env "GITEA_SESSION_PROVIDER" }}
[cache]
ADAPTER = {{ env "GITEA_CACHE_ADAPTER" }}
HOST = {{ env "GITEA_CACHE_HOST" }}