Skip to content

Commit

Permalink
Merge pull request #384 from NullVoxPopuli/patch-1
Browse files Browse the repository at this point in the history
Raise the bodyLimit to 50MB from 1MB
  • Loading branch information
fox1t committed Jun 11, 2024
2 parents e0ce447 + 6eeac27 commit 2cb846b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { env } from './env.js'

const app = createApp({
trustProxy: true,
// Default is 1MB
// https://fastify.dev/docs/latest/Reference/Server/#bodylimit
// Here, we raise it to 50 MB (50 * 1024 * 1024).
// number is measured in Bytes
bodyLimit: 52428800,
})

closeWithGrace(
Expand Down

0 comments on commit 2cb846b

Please sign in to comment.