"""
FastAPI 브릿지 설정
"""
import os
from typing import List

class Settings:
    # 기본 설정
    FASTAPI_PORT: int = int(os.getenv("FASTAPI_PORT", "8000"))
    EXPRESS_API_URL: str = os.getenv("EXPRESS_API_URL", "http://system1-api:3005")
    REDIS_URL: str = os.getenv("REDIS_URL", "redis://localhost:6379")
    NODE_ENV: str = os.getenv("NODE_ENV", "development")
    
    # CORS 설정
    CORS_ORIGINS: List[str] = [
        "http://localhost:3000",
        "http://localhost:8000", 
        "https://api.technicalkorea.com"
    ]
    
    # 로깅
    LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO")
    
    # API 설정
    API_V1_PREFIX: str = "/api"
    PROJECT_NAME: str = "TK FastAPI Bridge"
    VERSION: str = "1.0.0"
    
    # 프록시 설정
    PROXY_TIMEOUT: int = 30
    MAX_CONNECTIONS: int = 100
    
    # 캐시 설정
    CACHE_DEFAULT_TTL: int = 300  # 5분
    CACHE_HEALTH_TTL: int = 60    # 1분
    CACHE_AUTH_TTL: int = 900     # 15분
    CACHE_API_TTL: int = 180      # 3분
    CACHE_STATIC_TTL: int = 3600  # 1시간

settings = Settings()