504 Gateway timeout
It is a known issue to many people even those who are not in the programming field. 504 timeout happens when a response for a request has taken longer than expected. There are times that you know and are sure that you need to increase this time. For example if users export a huge excel file as a report. In nginx you can increase this time to what seems to be appropriate from programmer point of view.
In
nginx.conf
usually in /etc/nginx/
do as follow:proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;
More info: http://nginx.org/en/docs/http/ngx_http_proxy_module.html
#504 #gateway_timeout #timeout #nginx #proxy_read_timeout #proxy_send_timeout