summaryrefslogtreecommitdiff
path: root/app/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/config.py')
-rw-r--r--app/config.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/config.py b/app/config.py
new file mode 100644
index 0000000..d7f622d
--- /dev/null
+++ b/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()