From de667e8aaec1552491ebc59f01c8918b41838202 Mon Sep 17 00:00:00 2001 From: Mattias Nyberg Date: Tue, 7 May 2024 15:59:20 +0200 Subject: [PATCH] fix: use ramdom secret key when config is missing --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 2b6f7f0..2a810f6 100644 --- a/app.py +++ b/app.py @@ -5,6 +5,7 @@ json, redirect ) +import os import logging from search.oligo_search import ( get_sequence_list, @@ -22,7 +23,7 @@ __name__, static_folder="static" ) -app.secret_key = "myverysecretkey" +app.secret_key = os.getenv("APP_SECRET_KEY", os.urandom(24).hex()) @app.route('/')