해당 서비스 도커화 성공, 룰 추가, 로그인 오류 수정, 소문자 룰 어느정도 해결

This commit is contained in:
Hyungi Ahn
2025-08-01 15:55:27 +09:00
parent ef06cec8d6
commit 809b2af53e
6418 changed files with 1922672 additions and 69 deletions

40
fastapi-bridge/config.py Normal file
View File

@@ -0,0 +1,40 @@
"""
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://localhost: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()