projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8aa10
)
Server: avoid request entity too large for requests between pods
author
Chocobozzz
<florian.bigard@gmail.com>
Tue, 23 Aug 2016 14:24:11 +0000
(16:24 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Tue, 23 Aug 2016 14:24:11 +0000
(16:24 +0200)
server.js
patch
|
blob
|
history
diff --git
a/server.js
b/server.js
index 676597faefbfc295707965a53050777eaba824a3..8010d3e0698fdd443a8bdfe12966e5459034c16a 100644
(file)
--- a/
server.js
+++ b/
server.js
@@
-49,7
+49,7
@@
const port = config.get('listen.port')
// For the logger
app.use(morgan('combined', { stream: logger.stream }))
// For body requests
-app.use(bodyParser.json())
+app.use(bodyParser.json(
{ limit: '500kb' }
))
app.use(bodyParser.urlencoded({ extended: false }))
// Validate some params for the API
app.use(expressValidator({