mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 08:46:54 -06:00
Server: avoid request entity too large for requests between pods
This commit is contained in:
parent
9e8aa10d94
commit
def16d33d1
@ -49,7 +49,7 @@ const port = config.get('listen.port')
|
|||||||
// For the logger
|
// For the logger
|
||||||
app.use(morgan('combined', { stream: logger.stream }))
|
app.use(morgan('combined', { stream: logger.stream }))
|
||||||
// For body requests
|
// For body requests
|
||||||
app.use(bodyParser.json())
|
app.use(bodyParser.json({ limit: '500kb' }))
|
||||||
app.use(bodyParser.urlencoded({ extended: false }))
|
app.use(bodyParser.urlencoded({ extended: false }))
|
||||||
// Validate some params for the API
|
// Validate some params for the API
|
||||||
app.use(expressValidator({
|
app.use(expressValidator({
|
||||||
|
Loading…
Reference in New Issue
Block a user