feat: configurable session provider #31

Open
fauno wants to merge 2 commits from session into main
Owner

https://forgejo.org/docs/latest/admin/config-cheat-sheet/#session-session

i'm actually not sure now what was the effect of this. i assumed it wouldn't make us re-login after a re-deployment, but i didn't have to login again after changing the option to db 🤔

https://forgejo.org/docs/latest/admin/config-cheat-sheet/#session-session i'm actually not sure now what was the effect of this. i assumed it wouldn't make us re-login after a re-deployment, but i didn't have to login again after changing the option to `db` 🤔
fauno added 1 commit 2026-05-15 19:44:00 +00:00
fauno requested review from p4u1 2026-05-15 19:44:01 +00:00
p4u1 approved these changes 2026-05-16 08:03:46 +00:00
p4u1 left a comment
Owner

Nice 😍

Nice 😍
.env.sample Outdated
@ -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=memory
Owner

Should we set the default to db?

Should we set the default to db?
Owner

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.
Author
Owner

done!

done!
fauno marked this conversation as resolved
fauno added 1 commit 2026-05-20 13:17:27 +00:00
this should help with folks having to log in again after restarts
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin session:session
git checkout session
Sign in to join this conversation.
No description provided.