v1.10.88 품질·보안 개선과 미디어 카탈로그 database 전환을 반영한다.

세션·로그인 제한, ZIP/업로드 스트리밍, CSP 최소 강제와 Report-Only, Playwright 격리 검증을 추가하고 미디어 목록을 reconcile 후 database 모드로 고정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-22 11:05:40 +09:00
parent 9bc0f0a90e
commit de767095ba
116 changed files with 8128 additions and 2933 deletions

View File

@@ -0,0 +1,29 @@
import { Cron } from 'croner'
import { queuePendingPostExportJobs } from '../repositories/post-export-repository'
/**
* 대기·중단된 게시물 Export 작업 실행을 요청한다.
* @returns {Promise<void>}
*/
const queuePostExportWork = async () => {
try {
await queuePendingPostExportJobs()
} catch (error) {
console.error('[post-export] 작업 복구 확인 실패', error)
}
}
/**
* 서버 시작과 주기 확인으로 게시물 Export 작업을 복구한다.
*/
export default defineNitroPlugin(() => {
if (process.env.NUXT_POST_EXPORT_WORKER === '0' || process.env.PLAYWRIGHT_TEST === '1') {
return
}
queuePostExportWork()
new Cron('*/30 * * * * *', {
protect: true
}, queuePostExportWork)
})