security: add request body size limits (1MB global, 10KB auth)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-23 08:47:59 +01:00
parent 8aa1d40ba1
commit 333d1f7697
3 changed files with 7 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ const app = Fastify({
level: config.isProduction ? 'warn' : 'info',
},
trustProxy: true,
bodyLimit: 1048576,
});
async function start() {