Skip to content

Commit 0b639bb

Browse files
CasLubbersAni1357
andauthored
fix: update session settings for Gitea (#1908)
Co-authored-by: Ani Argjiri <[email protected]>
1 parent 9e1b61f commit 0b639bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

values/gitea/gitea.gotmpl

+6-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ gitea:
8181
ENABLE_OPENID_SIGNIN: true
8282
ENABLE_OPENID_SIGNUP: true
8383
oauth2_client:
84-
OPENID_CONNECT_SCOPES: openid email profile
8584
ENABLE_AUTO_REGISTRATION: true
86-
ACCOUNT_LINKING: auto
85+
{{/*Disabled so that when an user with the same username is created in gitea, it will not be linked to another account*/}}
86+
ACCOUNT_LINKING: disabled
87+
OPENID_CONNECT_SCOPES: openid email profile
8788
USERNAME: email
8889
repository:
8990
DEFAULT_BRANCH: main
@@ -102,6 +103,9 @@ gitea:
102103
session:
103104
COOKIE_SECURE: true
104105
DOMAIN: {{ $giteaDomain }}
106+
PROVIDER: memory
107+
GC_INTERVAL_TIME: 10
108+
SESSION_LIFE_TIME: 10
105109
webhook:
106110
ALLOWED_HOST_LIST: "*"
107111
server:

0 commit comments

Comments
 (0)