aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-20 09:57:00 -0500
committerFrederick Muriuki Muriithi2025-03-20 09:57:00 -0500
commit1faafac215ed58d9877443ba9db6a212a5d22a69 (patch)
treec6ddc9a25bff978fd5ae9cb0d923e5e09af459dd /uploader
parenta675d462d2771f9e6c497c2385c985c2a6bb8806 (diff)
downloadgn-uploader-1faafac215ed58d9877443ba9db6a212a5d22a69.tar.gz
Initialise session storage directory.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index cae531b..8119b9e 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -69,6 +69,11 @@ def create_app():
# Silently ignore secrets if the file does not exist.
app.config.from_pyfile(secretsfile)
+ app.config["SESSION_CACHELIB"] = FileSystemCache(
+ cache_dir=Path(app.config["SESSION_FILESYSTEM_CACHE_PATH"]).absolute(),
+ threshold=int(app.config["SESSION_FILESYSTEM_CACHE_THRESHOLD"]),
+ default_timeout=int(app.config["SESSION_FILESYSTEM_CACHE_TIMEOUT"]))
+
setup_logging(app)
# setup jinja2 symbols