vault backup: 2023-08-08 09:28:53
Affected files: Python FastAPI.md
This commit is contained in:
parent
dc29f830a6
commit
5d477e74f8
|
@ -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
|
Loading…
Reference in New Issue