mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: update session cookie age to environment variable
This commit is contained in:
parent
715ad1320c
commit
2b8437714c
@ -328,13 +328,13 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.environ.get("FILE_SIZE_LIMIT", 5242880))
|
|||||||
SESSION_COOKIE_SECURE = secure_origins
|
SESSION_COOKIE_SECURE = secure_origins
|
||||||
SESSION_COOKIE_HTTPONLY = True
|
SESSION_COOKIE_HTTPONLY = True
|
||||||
SESSION_ENGINE = "plane.db.models.session"
|
SESSION_ENGINE = "plane.db.models.session"
|
||||||
SESSION_COOKIE_AGE = 604800
|
SESSION_COOKIE_AGE = os.environ.get("SESSION_COOKIE_AGE", 604800)
|
||||||
SESSION_COOKIE_NAME = "plane-session-id"
|
SESSION_COOKIE_NAME = "plane-session-id"
|
||||||
SESSION_COOKIE_DOMAIN = os.environ.get("COOKIE_DOMAIN", None)
|
SESSION_COOKIE_DOMAIN = os.environ.get("COOKIE_DOMAIN", None)
|
||||||
|
|
||||||
# Admin Cookie
|
# Admin Cookie
|
||||||
ADMIN_SESSION_COOKIE_NAME = "plane-admin-session-id"
|
ADMIN_SESSION_COOKIE_NAME = "plane-admin-session-id"
|
||||||
ADMIN_SESSION_COOKIE_AGE = 3600
|
ADMIN_SESSION_COOKIE_AGE = os.environ.get("ADMIN_SESSION_COOKIE_AGE", 3600)
|
||||||
|
|
||||||
# CSRF cookies
|
# CSRF cookies
|
||||||
CSRF_COOKIE_SECURE = secure_origins
|
CSRF_COOKIE_SECURE = secure_origins
|
||||||
|
Loading…
Reference in New Issue
Block a user