-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Session Provider Documentation #14016
Comments
macaron has been replaced by go-chi and the session middleware has been replaced by https://gitea.com/go-chi/session |
@Skaronator if you like you could enhance the docu ... :) - just send a pull |
The new db session provider is even simpler than any of the rest - it simply uses the gitea db so doesn't need any configuration. |
@zeripath we should at least mention this option for clustering ... |
@Skaronator @lunny we actually need some lines about how to store session within postgres. I've tried to change
|
@ndaidong what is the 👎 for? How can I be clearer: If you set |
@zeripath thank you, it works for me now, even the log show:
Anyway, it's neccessary to update the docs and example, currently there is no word mentioning to
|
@ndaidong Could you help to send a PR to improve that? |
@lunny sure, my pleasure. I will send a PR this weekend. |
Add more guide about `PROVIDER_CONFIG` when `PROVIDER` is `db` (#14016)
Add more guide about `PROVIDER_CONFIG` when `PROVIDER` is `db` (go-gitea#14016)
[x]
):Description
It took me litterally 1 hour to figure out how to configure the sessions properly with Postgres. The offical Gitea Documentation is really lite on that topic as you can see here https://docs.gitea.io/en-us/config-cheat-sheet/#session-session
There are only 2 lines that describe how to configure it but doesn't mention how to do it exactly. A example would be great here.
After searching in the code I found out that Gitea uses a library for that and the library has a wonderfull documentation. Maybe it make sense to a) either link their documentation in the Gitea documentation or b) copy the important parts out of it and further reference them.
https://go-macaron.com/middlewares/session#postgresql
What do you think?
...
Screenshots
The text was updated successfully, but these errors were encountered: