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()