i have a probleme whene i want to maximize upload size with nginx on elasticbeanstalk aws, i created
a file .platform/nginx/conf.d/proxy.conf :
client_max_body_size 100M;
then i commited and eb deploy
it works for a while and i could uploade files with big sizes with my dashboard
but after a period (10 –> 15 min ) an error in the log comes after any request
21311#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: ***.**.**.***, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "***.**.**.**"
any suggestions to solve this probleme!!
2
Answers
for anyone who have the same probleme .. the solution that i found is to put the .conf file in
.platformnginxconf.delasticbeanstalk/proxy.conf
with content
it worked for me
What is your running app in 127.0.0.1:8080 ? It looks like the app in port of 8080 time out or over the max upload size .