diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:10:32 +0200 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:10:32 +0200 |
commit | 5e19a0569288de21365c61b0db78639880732dd0 (patch) | |
tree | e1d3add7376b53157fe8830cbd81b02c1a3a3586 /Projekt/app/config.py |
inital commit
Diffstat (limited to 'Projekt/app/config.py')
-rw-r--r-- | Projekt/app/config.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Projekt/app/config.py b/Projekt/app/config.py new file mode 100644 index 0000000..d7f622d --- /dev/null +++ b/Projekt/app/config.py @@ -0,0 +1,16 @@ +from pydantic import BaseSettings + +class Settings(BaseSettings): + database_hostname: str + database_port: str + database_password: str + database_name: str + database_username: str + secret_key: str + algorithm: str + access_token_expire_minutes: int + + class Config: + env_file = ".env" + +settings = Settings() |