Skip to content

Commit

Permalink
Merge pull request #15 from NBISweden/fix/use-random-secret-key
Browse files Browse the repository at this point in the history
fix: use ramdom secret key when config is missing
  • Loading branch information
kusalananda authored May 7, 2024
2 parents 8b8766b + fdec6ea commit 6cece82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
json,
redirect
)
import os
import logging
from search.oligo_search import (
get_sequence_list,
Expand All @@ -23,7 +24,7 @@
__name__,
static_folder="static"
)
app.secret_key = "myverysecretkey"
app.secret_key = os.getenv("APP_SECRET_KEY", os.urandom(24).hex())
Compress(app)


Expand Down

0 comments on commit 6cece82

Please sign in to comment.