V4 timeout increase

Hi guys, I’m slowly giving up tangled in the config web.
We have a CSV import suite from Woo that imports thousands of products. It takes about 5-10 minutes to import.
The problem is that nginx somewhere kills the request after 60s. Always.
So I’ve changed limits in:

  1. /opt/easyengine/sites/mysite.com/config/php/php/php.ini [max_execution_time and max_input_time]
  2. /opt/easyengine/sites/mysite.com/config/nginx/nginx.conf [keepalive_timeout]

Obviously restarted proxy and website and PHP shows nicely 10 minutes now, but nginx still kills awaiting request after 60s. I feel it’s somewhere in nginx proxy but can’t find where. What did I miss?

I’m having this exact same issue.

Can anyone add some info here?

@kirtan ?

@ralf

Here’s the solution:

Go into the /opt/easyengine/services/nginx-proxy/conf.d/ folder and add a new file ending in .conf (like custom.conf), and enter your config there.

Mine has these 3 lines:

proxy_connect_timeout 1200;
proxy_send_timeout 1200;
proxy_read_timeout 1200;

problem solved.

Hi @davidsandbrand,

I tried doing as suggested but kept getting the following error
“proxy_connect_timeout” directive is duplicate in /etc/nginx/conf.d/custom.conf:1

How do i resolve it?

@Wenceslaus_Dsilva1 - you must have the same thing defined in two places. The file you created, and the one at /etc/nginx/conf.d/custom.conf.

get rid of one.