8π
β
The nginx
setting you are trying to use (/etc/nginx/conf.d/proxy.conf
) is for Amazon Linux 1.
Since you are probably using Amazon Linux 2 you should be using different files for customizing nginx
. For AL2, the nginx
settings should be in .platform/nginx/conf.d/
, not in .ebextentions
as shown in the docs.
Therefore, you could have the following .platform/nginx/conf.d/myconfig.conf
with content:
client_max_body_size 100M;
π€Marcin
Source:stackexchange.com