Don't lose session data when upgrading GKE pods/containers #17

Closed
opened 2019-02-13 04:31:36 +00:00 by raucao · 2 comments
Owner

After upgrades to the GKE pods, one has to log in again, so it would seem that session data is stored in the pod's own storage instead of the persistent volume.

After upgrades to the GKE pods, one has to log in again, so it would seem that session data is stored in the pod's own storage instead of the persistent volume.
raucao added the
enhancement
label 2019-02-13 04:31:36 +00:00
Owner

Fixed by adding this to the session section of the app.ini:

PROVIDER = file
PROVIDER_CONFIG = /data/gitea/sessions
COOKIE_SECURE = true

I also enabled only secure cookies while I was at it

The default is in memory so that's why we were losing sessions. The docs mention a mysql adapter, but it's not in 1.7.5, maybe they'll add it in 1.8?

Fixed by adding this to the session section of the `app.ini`: ``` PROVIDER = file PROVIDER_CONFIG = /data/gitea/sessions COOKIE_SECURE = true ``` I also enabled only secure cookies while I was at it The default is in memory so that's why we were losing sessions. The docs mention a mysql adapter, but it's not in 1.7.5, maybe they'll add it in 1.8?
greg closed this issue 2019-04-02 09:38:08 +00:00
Author
Owner

Nice find. 👍

Nice find. :+1:
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/gitea.kosmos.org#17
No description provided.