Docs: Add warning to prevent leaking SECRET_KEY in version control

This commit is contained in:
Mervan Palmér 2026-05-19 16:00:09 +02:00
parent 7ab0e99886
commit 66b3945f66

View file

@ -72,6 +72,12 @@ will read from if it exists. Copy the generated value into it.
SECRET_KEY = '192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf' SECRET_KEY = '192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf'
.. warning::
Never commit the file containing your production ``SECRET_KEY`` to version
control. Ensure that your ``.gitignore`` file excludes the ``instance/``
folder and the specific ``config.py`` file to prevent leaking your secret
key to a public repository.
You can also set any other necessary configuration here, although You can also set any other necessary configuration here, although
``SECRET_KEY`` is the only one needed for Flaskr. ``SECRET_KEY`` is the only one needed for Flaskr.