question

andy156 avatar image
andy156 asked

Node-red Deploy failing - flow.json is too large

Hi, I'm trying to deploy my file and I am getting...

Deploy failed:


413 Request Entity Too Large


nginx/1.16.1


if I delete a node then this goes away. I have quite a large file now


I have tried adding

apiMaxLength: '10mb', to /data/home/nodered/.node-red/settings-user.js which should be doubling the amount I can deploy. However it hasn't changed anything.


Does anyone know what I need to do to make it work please? My flows.json file is failing at 2 megabytes Thanks

Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
andy156 avatar image
andy156 answered ·

I added

 client_max_body_size 15M;

to the last end of the http block in /etc/nginx/nginx.conf and that fixed it. Obviously this won't survive a reboot.


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.