from pydantic_settings import BaseSettings from typing import Optional class Settings(BaseSettings): """Application settings""" # App APP_NAME: str = "Site11 Console" APP_VERSION: str = "1.0.0" DEBUG: bool = False # Security SECRET_KEY: str = "your-secret-key-change-in-production" ALGORITHM: str = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 REFRESH_TOKEN_EXPIRE_DAYS: int = 7 # Database MONGODB_URL: str = "mongodb://localhost:27017" DB_NAME: str = "site11_console" # Redis REDIS_URL: str = "redis://localhost:6379" # CORS CORS_ORIGINS: list = ["http://localhost:3000", "http://localhost:8000"] # OAuth (Google, GitHub, etc.) GOOGLE_CLIENT_ID: Optional[str] = None GOOGLE_CLIENT_SECRET: Optional[str] = None GITHUB_CLIENT_ID: Optional[str] = None GITHUB_CLIENT_SECRET: Optional[str] = None # Services URLs USERS_SERVICE_URL: str = "http://users-backend:8000" IMAGES_SERVICE_URL: str = "http://images-backend:8000" # Kafka (optional) KAFKA_BOOTSTRAP_SERVERS: str = "kafka:9092" class Config: env_file = ".env" case_sensitive = True settings = Settings()