Skip to content

Commit 34e874c

Browse files
authored
bump request size limit + env setting
1 parent dc4340d commit 34e874c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdf-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const bodyParser = require('body-parser');
88
const compression = require('compression');
99

1010
app.use(compression());
11-
app.use(bodyParser.json()); // support json encoded bodies
1211
app.use(bodyParser.urlencoded({
1312
extended: true,
14-
limit: '100mb',
13+
limit: process.env.REQUEST_SIZE_LIMIT || '250mb',
1514
parameterLimit: 1000,
1615
})); // support encoded bodies
16+
app.use(bodyParser.json()); // support json encoded bodies
1717

1818
const storagePath = path.join(__dirname, 'storage');
1919
if (!fs.existsSync(storagePath)) {

0 commit comments

Comments
 (0)