Skip to content

Commit

Permalink
fix(secret_key): secret key now env or random (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
drahamim authored Mar 14, 2024
1 parent cbb2586 commit 236c2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invenflask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'DATABASE_URI', 'sqlite:////tmp/test.db')
bootstrap = Bootstrap5(app)
app.config['TEMPLATES_AUTO_RELOAD'] = True
app.config['SECRET_KEY'] = os.urandom(24)
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY','os.urandom(24)')
app.config['upload_folder'] = '/tmp/uploads'
moment = Moment(app)

Expand Down

0 comments on commit 236c2ba

Please sign in to comment.