제어관리 데이터 저장기능
This commit is contained in:
@@ -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/")
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user