Prepare game updates and single-process PM2 deployment

This commit is contained in:
2026-10-14 19:13:36 +09:00
parent 4f24129e29
commit 22792bc2b4
50 changed files with 1546 additions and 197 deletions
+10
View File
@@ -0,0 +1,10 @@
export const HTTP_LIMITS = { windowMs: 60_000, api: 1200, sessions: 30, admin: 60, maxIps: 10_000, cleanupMs: 30_000 } as const;
export const HTTP_MESSAGES = {
rateLimit: '요청이 너무 많습니다. 잠시 후 다시 시도하세요.',
serverError: '요청을 처리하지 못했습니다. 잠시 후 다시 시도하세요.',
badRequest: '요청 형식을 확인하고 다시 시도하세요.',
notReady: '서버가 준비되지 않았습니다. 잠시 후 다시 시도하세요.',
} as const;
export const SERVER_LOG_LEVELS = ['fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent'] as const;
export const SAFE_ERROR_TYPES = ['Error', 'TypeError', 'RangeError', 'SyntaxError', 'MongoServerError', 'MongoNetworkError', 'MongoServerSelectionError', 'MongoOperationTimeoutError'] as const;
export const SAFE_ERROR_CODES = ['ECONNREFUSED', 'ETIMEDOUT', 'EADDRINUSE', 'EACCES', 'ENOTFOUND', 'INVALID_TRUST_PROXY', 'MISSING_MONGODB_URI'] as const;