aboutsummaryrefslogtreecommitdiff
path: root/order-service/app/core/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'order-service/app/core/config.py')
-rw-r--r--order-service/app/core/config.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/order-service/app/core/config.py b/order-service/app/core/config.py
new file mode 100644
index 0000000..013b356
--- /dev/null
+++ b/order-service/app/core/config.py
@@ -0,0 +1,14 @@
+from pydantic_settings import BaseSettings
+
+
+class Settings(BaseSettings):
+ PROJECT_NAME: str = "Order Service API"
+
+ DATABASE_URL: str
+
+ class Config:
+ env_file = ".env"
+ env_file_encoding = "utf-8"
+
+
+settings = Settings()