Merge pull request #3249 from dato/cookie_age_setting
Set SESSION_COOKIE_AGE from environment
This commit is contained in:
commit
45cc3dc979
2 changed files with 8 additions and 1 deletions
|
@ -30,6 +30,9 @@ RELEASE_API = env(
|
|||
|
||||
PAGE_LENGTH = env.int("PAGE_LENGTH", 15)
|
||||
DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English")
|
||||
# TODO: extend maximum age to 1 year once termination of active sessions
|
||||
# is implemented (see bookwyrm-social#2278, bookwyrm-social#3082).
|
||||
SESSION_COOKIE_AGE = env.int("SESSION_COOKIE_AGE", 3600 * 24 * 30) # 1 month
|
||||
|
||||
JS_CACHE = "8a89cad7"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue