I'm having trouble adjusting the Proxy Connect, Read, and Send settings for NGINX in my Elastic Beanstalk Flask Application. My application does some long calculations so I'm trying to increase the timeout times. Here's what I have:
In the root of my project I have the a directory:
.ebextensions/nginx/conf.d/myconf.conf
The myconf.conf is as follows:
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 180;
The .conf file is UTF-8. This seems to be what's specified on the AWS site: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-nginx.html
However, I'm still getting a 504 error after 60 seconds. I've tried numerous itterations like placing my .conf file in a .platform/nginx/conf./ directory. No luck there. I've also read over this thread extensively and can't seem to pull out of it what I need: Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk
If anybody has any suggestions as to how I should structure this filepath and the myconf.conf file, am I missing headers, quotations, curly brackets?, that would be great. Thank you so much!