fastapi_celery/app/core/config.py
2025-12-25 16:43:26 +08:00

15 lines
372 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
app_name: str = "FastAPI Celery Example"
debug: bool = True
redis_url: str = "redis://localhost:6379/0"
celery_broker_url: str = "redis://localhost:6379/0"
celery_result_backend: str = "redis://localhost:6379/0"
model_config = {"env_file": ".env"}
settings = Settings()