diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:24:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:24:11 +0200 |
commit | def16d33d19153c6583fa8a30634760b3d64d34c (patch) | |
tree | 257dadd738b3b7d5d7664c68aea6a5977a32091a | |
parent | 9e8aa10d94e4642ec1d20a522c41b06e9df7758b (diff) | |
download | PeerTube-def16d33d19153c6583fa8a30634760b3d64d34c.tar.gz PeerTube-def16d33d19153c6583fa8a30634760b3d64d34c.tar.zst PeerTube-def16d33d19153c6583fa8a30634760b3d64d34c.zip |
Server: avoid request entity too large for requests between pods
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ const port = config.get('listen.port') | |||
49 | // For the logger | 49 | // For the logger |
50 | app.use(morgan('combined', { stream: logger.stream })) | 50 | app.use(morgan('combined', { stream: logger.stream })) |
51 | // For body requests | 51 | // For body requests |
52 | app.use(bodyParser.json()) | 52 | app.use(bodyParser.json({ limit: '500kb' })) |
53 | app.use(bodyParser.urlencoded({ extended: false })) | 53 | app.use(bodyParser.urlencoded({ extended: false })) |
54 | // Validate some params for the API | 54 | // Validate some params for the API |
55 | app.use(expressValidator({ | 55 | app.use(expressValidator({ |