mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Increase default apiMaxLength to 5mb and add to default settings
Closes #1001
This commit is contained in:
parent
a4de9e94dd
commit
85b1c1fe97
@ -96,7 +96,7 @@ function init(_server,_runtime) {
|
||||
editorApp.use("/",ui.editorResources);
|
||||
adminApp.use(editorApp);
|
||||
}
|
||||
var maxApiRequestSize = settings.apiMaxLength || '1mb';
|
||||
var maxApiRequestSize = settings.apiMaxLength || '5mb';
|
||||
adminApp.use(bodyParser.json({limit:maxApiRequestSize}));
|
||||
adminApp.use(bodyParser.urlencoded({limit:maxApiRequestSize,extended:true}));
|
||||
|
||||
|
@ -90,6 +90,10 @@ module.exports = {
|
||||
// that should be served at http://localhost:1880/.
|
||||
//httpStatic: '/home/nol/node-red-static/',
|
||||
|
||||
// The maximum size of HTTP request that will be accepted by the runtime api.
|
||||
// Default: 5mb
|
||||
//apiMaxLength: '5mb',
|
||||
|
||||
// If you installed the optional node-red-dashboard you can set it's path
|
||||
// relative to httpRoot
|
||||
//ui: { path: "ui" },
|
||||
|
Loading…
Reference in New Issue
Block a user