코드 정리 및 UI 개선: 불필요한 파일 제거, 디버그 로그 정리, 프로덕션 설정 개선, 할일관리 헤더 개선

This commit is contained in:
Hyungi Ahn
2025-09-04 11:21:15 +09:00
parent 16eec06b7c
commit f49edaf06b
6 changed files with 25 additions and 3763 deletions

View File

@@ -28,6 +28,7 @@ class Settings(BaseSettings):
# CORS 설정
ALLOWED_HOSTS: List[str] = ["http://localhost:24100", "http://127.0.0.1:24100"]
ALLOWED_ORIGINS: List[str] = ["http://localhost:24100", "http://127.0.0.1:24100"]
# 파일 업로드 설정
UPLOAD_DIR: str = "uploads"

View File

@@ -30,12 +30,12 @@ app = FastAPI(
lifespan=lifespan,
)
# CORS 설정 (개발용 - 더 관대한 설정)
# CORS 설정
app.add_middleware(
CORSMiddleware,
allow_origins=["*"], # 개발용으로 모든 오리진 허용
allow_origins=settings.ALLOWED_ORIGINS if hasattr(settings, 'ALLOWED_ORIGINS') else ["*"],
allow_credentials=True,
allow_methods=["*"],
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allow_headers=["*"],
)