from pydantic_settings import BaseSettings from typing import List class Settings(BaseSettings): # MongoDB MONGODB_URL: str = "mongodb://localhost:27017" DB_NAME: str = "ai_writer_db" # Redis REDIS_URL: str = "redis://localhost:6379" # JWT SECRET_KEY: str = "dev-secret-key-change-in-production" ALGORITHM: str = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 # Service SERVICE_NAME: str = "news-engine-console" API_V1_STR: str = "/api/v1" PORT: int = 8100 # CORS ALLOWED_ORIGINS: List[str] = [ "http://localhost:3000", "http://localhost:3100" ] class Config: env_file = ".env" case_sensitive = True settings = Settings()