mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Increase default apiMaxLength to 5mb and add to default settings
Closes #1001
This commit is contained in:
		@@ -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,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" },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user