set content limit to 10mb

This commit is contained in:
nymkappa 2025-02-06 12:39:02 +01:00
parent bb5b771128
commit a664f0c230
No known key found for this signature in database
GPG key ID: 92358FC85D9645DE

View file

@ -133,9 +133,9 @@ class Server {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
})
.use(express.urlencoded({ extended: true }))
.use(express.text({ type: ['text/plain', 'application/base64'] }))
.use(express.json())
.use(express.urlencoded({ extended: true, limit: '10mb' }))
.use(express.text({ type: ['text/plain', 'application/base64'], limit: '10mb' }))
.use(express.json({ limit: '10mb' }))
;
if (config.DATABASE.ENABLED && config.FIAT_PRICE.ENABLED) {