Skip to content

Commit

Permalink
set secret key in app
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 18, 2023
1 parent 2e61e6f commit f9184b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions budgetkey_api/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def create_flask_app(session_file_dir=None, cache_dir=None, services=None):

CORS(app, supports_credentials=True)

app.secret_key = os.environ['SECRET_KEY']

config = {
"CACHE_TYPE": "FileSystemCache", # Flask-Caching related configs
"CACHE_DEFAULT_TIMEOUT": 600,
Expand Down
1 change: 1 addition & 0 deletions tests/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ PUBLIC_KEY=PUBLIC_KEY
DATABASE_PRIVATE_URL=sqlite:///tests/temp/db.sqlite3
DATABASE_READONLY_URL=sqlite:///tests/temp/db.sqlite3
EXTERNAL_ADDRESS=next.obudget.org
SECRET_KEY=SECRET_KEY

0 comments on commit f9184b5

Please sign in to comment.