I am using Python, Flask, uWSGI and NGINX to host a web server. One of the functions involves generating a file for the user which can take up to a minute or two. On this action I keep getting a 504 timeout from NGINX. I tried to change some config variables in /etc/nginx/nginx.conf
like keepalive_timeout
but that didn't work.I also tried to add the following to /etc/nginx/conf.d/timeout.conf
:
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
and then I reloaded with systemctl reload nginx
but it didn't change anything.
How do I increase the length of time before the request times out? Thanks for any help