vault backup: 2023-08-08 09:28:53

Affected files:
Python FastAPI.md
This commit is contained in:
ed barz 2023-08-08 09:28:53 +02:00
parent dc29f830a6
commit 5d477e74f8
1 changed files with 7 additions and 0 deletions

View File

@ -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