From b6ee08fac2a8502fd57e8f3c97c3fd1984b95f5b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 28 Oct 2016 10:59:58 +0200 Subject: [PATCH] Increase the session length in anitya to 24h Fixes https://github.com/fedora-infra/anitya/issues/340 --- roles/anitya/frontend/templates/anitya.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/anitya/frontend/templates/anitya.cfg b/roles/anitya/frontend/templates/anitya.cfg index ed8a23db08..3aa6c3f06a 100644 --- a/roles/anitya/frontend/templates/anitya.cfg +++ b/roles/anitya/frontend/templates/anitya.cfg @@ -1,5 +1,10 @@ # Beware that the quotes around the values are mandatory +from datetime import timedelta +# Set the time after which the session expires +PERMANENT_SESSION_LIFETIME = timedelta(hours=24) + + ### Secret key for the Flask application SECRET_KEY='{{ anitya_secret_key }}'