blob: df5526d9ac0e813ebd897229f01c530962698e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
PROJECT_NAME: str = "Inventory Service"
DATABASE_URL: str
KAFKA_BOOTSTRAP_SERVERS: str = "localhost:9092"
KAFKA_CONSUMER_GROUP_ID: str = "inventory-service-group"
KAFKA_ORDERS_TOPIC: str = "orders"
KAFKA_INVENTORY_TOPIC: str = "inventory"
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings()
|