Increase JSON and URL-encoded body size limits to 1GB

This commit is contained in:
ImBenji
2025-12-31 12:39:25 +00:00
parent 4da4ff98ba
commit 1d60f55cb8

3
api.js
View File

@@ -13,7 +13,8 @@ if (!fs.existsSync(CACHE_DIR)) {
fs.mkdirSync(CACHE_DIR); fs.mkdirSync(CACHE_DIR);
} }
app.use(express.json()); app.use(express.json({ limit: '1gb' }));
app.use(express.urlencoded({ limit: '1gb', extended: true }));
function normalizeConfig(config) { function normalizeConfig(config) {
// Remove null, undefined, and empty string values // Remove null, undefined, and empty string values