Nginx 504 Gateway Time-out

Nginx 504 Gateway Time-out

server{
	#...
	proxy_connect_timeout       500s;
    proxy_send_timeout          500s;
    proxy_read_timeout          500s;
    send_timeout                500s;
}