aboutsummaryrefslogtreecommitdiff
path: root/order-service/app/core/config.py
diff options
context:
space:
mode:
authoralex <[email protected]>2026-07-15 20:24:31 +0200
committeralex <[email protected]>2026-07-15 20:24:31 +0200
commit8e12cb9bb66adc7adaf6d276133d6f235d294d23 (patch)
tree31aa3f6a06407b39bb23d7cc724c70899795a788 /order-service/app/core/config.py
downloadorder-inventory-system-8e12cb9bb66adc7adaf6d276133d6f235d294d23.tar.xz
order-inventory-system-8e12cb9bb66adc7adaf6d276133d6f235d294d23.zip
init
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()