From 5d477e74f82802b4b9896663bd687b0ed6a83f3e Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 8 Aug 2023 09:28:53 +0200 Subject: [PATCH] vault backup: 2023-08-08 09:28:53 Affected files: Python FastAPI.md --- Python FastAPI.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Python FastAPI.md b/Python FastAPI.md index 1283a9e..64888a2 100644 --- a/Python FastAPI.md +++ b/Python FastAPI.md @@ -40,3 +40,10 @@ def read_root(): ``` +## Using Environnement Variables + +For API authentication and database connection, basically anything that requires a "secret". We're gonna use environnement variables. + +For development, we can write everything in a .env file that will be added to the .gitignore. In production, the content of the .env file will be placed in a "secret" file, usually in /etc/app_name/secret, that will be loaded as an Environnement file by the systemd service file. + +## Using ORMAR as an ORM \ No newline at end of file