Increase default apiMaxLength to 5mb and add to default settings

Closes #1001
This commit is contained in:
Nick O'Leary 2016-10-10 10:14:08 +01:00
parent a4de9e94dd
commit 85b1c1fe97
2 changed files with 6 additions and 2 deletions

View File

@ -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}));

View File

@ -90,7 +90,11 @@ module.exports = {
// that should be served at http://localhost:1880/.
//httpStatic: '/home/nol/node-red-static/',
// If you installed the optional node-red-dashboard you can set it's path
// 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" },