Increase timeout in Nginx Proxy Manager to avoid 504 on slow calls

Tiempo de lectura: < 1 minuto

Today, we will learn how to increase the timeout in Nginx Proxy Manager.

To increase the timeout, we need to go to our NPM (Nginx Proxy Manager) and open the Proxy Host to which we want to apply the configuration (in the hosts tab):

Now, go to the Advanced section:

Add the following lines inside the Custom Nginx Configuration:

proxy_read_timeout 2400s;
proxy_connect_timeout 2400s;
proxy_send_timeout 2400s;

It should look like this:

Finally, click on Save.

Leave a Comment