제어관리 데이터 저장기능

This commit is contained in:
kjs
2025-09-26 13:52:32 +09:00
parent 2a4e379dc4
commit 9454e3a81f
17 changed files with 1417 additions and 781 deletions

View File

@@ -88,16 +88,19 @@ app.use(
// Rate Limiting (개발 환경에서는 완화)
const limiter = rateLimit({
windowMs: 1 * 60 * 1000, // 1분
max: config.nodeEnv === "development" ? 5000 : 100, // 개발환경에서는 5000으로 증가, 운영환경에서는 100
max: config.nodeEnv === "development" ? 10000 : 100, // 개발환경에서는 10000으로 증가, 운영환경에서는 100
message: {
error: "너무 많은 요청이 발생했습니다. 잠시 후 다시 시도해주세요.",
},
skip: (req) => {
// 헬스 체크와 테이블/컬럼 조회는 Rate Limiting 완화
// 헬스 체크와 자주 호출되는 API들은 Rate Limiting 완화
return (
req.path === "/health" ||
req.path.includes("/table-management/") ||
req.path.includes("/external-db-connections/")
req.path.includes("/external-db-connections/") ||
req.path.includes("/screen-management/") ||
req.path.includes("/multi-connection/") ||
req.path.includes("/dataflow-diagrams/")
);
},
});