nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Custom Timeout

Open JonathanTreffler opened this issue 5 years ago • 26 comments

The default timeout of Proxy Hosts seems to be 1 Minute, wich is pretty short, so i would like to change the timeout without having to use a Custom Nginx Configuration.

Describe the solution you'd like A input field in the Web Interface to change the timeout per Proxy Host. It should probably set following nginx configuration parameters:

  • proxy_connect_timeout
  • proxy_send_timeout
  • proxy_read_timeout
  • send_timeout

Additional context image

JonathanTreffler avatar Dec 15 '19 16:12 JonathanTreffler

Def need this.. so many things i reverse proxy need a much longer timeout.. Anything to do with Docker usually takes more than a minute to build a container and NPM causes it to bail out.

danmed avatar Feb 10 '20 14:02 danmed

Maybe i will do a PR for this Feature at some point, but i currently don't have enough time

JonathanTreffler avatar Feb 18 '20 22:02 JonathanTreffler

I really need that 👍 Hope you get around to it sometime!

Bloham avatar Sep 02 '20 12:09 Bloham

+1

mostafabarmshory avatar Sep 26 '20 08:09 mostafabarmshory

Would like to see that too! Good feature request!

c-schulz-rd13 avatar Jan 17 '21 11:01 c-schulz-rd13

+1.

Is there a workaround in the meantime?

mangopudding avatar Jan 23 '21 03:01 mangopudding

+1

marcwimmer avatar Feb 25 '21 12:02 marcwimmer

+1

Has anyone figured out a workaround?

joelloube avatar Feb 25 '21 23:02 joelloube

+1

Hikari avatar Apr 08 '21 06:04 Hikari

no update regarding this?

tryanbot avatar Aug 05 '21 14:08 tryanbot

The "workaround" is: just add the parameter you want to change to the advanced config field. If you want to change the proxy timeout, set the corresponding proxy timeout variables.

I am using the following line of advanced custom config to prevent console disconnects in Portainer:

proxy_read_timeout 30m;

chaptergy avatar Aug 05 '21 14:08 chaptergy

super helpful, thank you so much.

tryanbot avatar Aug 05 '21 14:08 tryanbot

The "workaround" is: just add the parameter you want to change to the advanced config field. If you want to change the proxy timeout, set the corresponding proxy timeout variables.

I am using the following line of advanced custom config to prevent console disconnects in Portainer:

proxy_read_timeout 30m;

Did this actually work for you? I added the above, and I still timeout...

mriksman avatar Oct 20 '21 14:10 mriksman

The "workaround" is: just add the parameter you want to change to the advanced config field. If you want to change the proxy timeout, set the corresponding proxy timeout variables. I am using the following line of advanced custom config to prevent console disconnects in Portainer:

proxy_read_timeout 30m;

Did this actually work for you? I added the above, and I still timeout...

I think it did. I have not had any timeouts since, but i cannot confirm if this configuration fixed it or something else.

JonathanTreffler avatar Oct 20 '21 14:10 JonathanTreffler

@mriksman It worked for me as well, with timeouts in the portainer console. Maybe whatever app you proxy has some internal timeouts which expire independent of whether the proxy connection is kept open?

Oh and @JonathanTreffler, why is it exactly that you want this feature without the custom nginx configuration? That's exactly what the custom config is for.

chaptergy avatar Oct 20 '21 14:10 chaptergy

Portainer. Google pointed me to proxy_read_timeout and people said it was not a Portainer issue, but a Reverse Proxy issue. Not sure what MY issue is then!

mriksman avatar Oct 20 '21 14:10 mriksman

Oh and @JonathanTreffler, why is it exactly that you want this feature without the custom nginx configuration? That's exactly what the custom config is for.

It seems very easy to implement and requires no duckduckgo-ing :)

JonathanTreffler avatar Oct 20 '21 14:10 JonathanTreffler

Update: Portainer is adhering to the setting. Sort of... proxy_read_timeout 0; causes a 504 error; times out before the console can load. proxy_read_timeout 10; killed the Portainer websocket console after 10 seconds. proxy_read_timeout 3600; timed out after 100 seconds (1 min 40 seconds)... ...So somewhere there is a 100s timeout taking precedence....??

mriksman avatar Oct 20 '21 15:10 mriksman

Bloody Cloudflare...

mriksman avatar Oct 20 '21 15:10 mriksman

did you ever find a solution to cloudflare timeout

Padillam5 avatar Jul 07 '22 11:07 Padillam5

The "workaround" is: just add the parameter you want to change to the advanced config field. If you want to change the proxy timeout, set the corresponding proxy timeout variables.

I am using the following line of advanced custom config to prevent console disconnects in Portainer:

proxy_read_timeout 30m;

How to do it? Can tutorial for me do this? tks

hoangnamitc avatar Oct 08 '22 04:10 hoangnamitc

+1

Hadatko avatar Aug 22 '23 05:08 Hadatko

+1

mighty-services avatar Nov 10 '23 19:11 mighty-services