summaryrefslogtreecommitdiff
path: root/Projekt/app/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Projekt/app/config.py')
-rw-r--r--Projekt/app/config.py16
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()