There is a server on NGINX. The site is made API. When you request a specific url, a list of products in json format is issued. If I put a small amount of goods, then everything is fine; if I put a large number, I get a 50x error. The request itself is processed for about 10 seconds. On the old server, too, was NGINX, it worked without problems .... but I do not remember what settings were there.

Tell me which parameter is responsible for waiting for a response from the server, and how it can be set only for a specific URL.

Installed fastcgi_read_timeout 3600; nginx does not help in settings (or does not work, I don’t know how to check)

  • Config show - Victor Pupkin

1 answer 1

I'm set up like this

  location /long_responce { proxy_connect_timeout 300; proxy_send_timeout 300; proxy_read_timeout 300; }