I have Strapi running behind an NGINX server and I POST requests that are around 200Ko. (I POST the HTML source code of a page in the data field of an "HTML Pages" Content Type). I keep getting the 413 Error - Payload Too Large from Strapi.
I have added the following to nginx.conf (both on the 80 and 443 ports):
max_client_body_size 20M;
However, Strapi debug logs indicate that requests go through NGINX to Strapi successfully. So I don't think NGINX is the problem.
I have also tried to create the folders and file config/environments/development/request.json with this configuration in it:
{
"parser": {
"enabled": true,
"multipart": true,
"formLimit": "500mb",
"jsonLimit": "500mb",
"formidable": {
"maxFileSize": 524288000
}
}
}
I am in a development environment but, just in case I was not, I added the config/environments/production/request.json file as well.
However, I keep getting the same 413 error. After going through the current documentation, it seems to me that this request.json worked on a former version of Strapi but not this one.
So here's my question. How do you guys increase the maximum payload size in Strapi? (I have the 3.1.4 version).
Thanks in advance for your help! :)