NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.81k stars 2.65k forks source link

Custom Timeout #257

Open JonathanTreffler opened 4 years ago

JonathanTreffler commented 4 years ago

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:

Additional context image

danmed commented 4 years ago

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.

JonathanTreffler commented 4 years ago

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

Bloham commented 4 years ago

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

mostafabarmshory commented 4 years ago

+1

c-schulz-rd13 commented 3 years ago

Would like to see that too! Good feature request!

mangopudding commented 3 years ago

+1.

Is there a workaround in the meantime?

marcwimmer commented 3 years ago

+1

joelloube commented 3 years ago

+1

Has anyone figured out a workaround?

Hikari commented 3 years ago

+1

tryanbot commented 3 years ago

no update regarding this?

chaptergy commented 3 years ago

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;
tryanbot commented 3 years ago

super helpful, thank you so much.

mriksman commented 3 years ago

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...

JonathanTreffler commented 3 years ago

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.

chaptergy commented 3 years ago

@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.

mriksman commented 3 years ago

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!

JonathanTreffler commented 3 years ago

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 :)

mriksman commented 3 years ago

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 commented 3 years ago

Bloody Cloudflare...

Padillam5 commented 2 years ago

did you ever find a solution to cloudflare timeout

hoangnamitc commented 2 years ago

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

Hadatko commented 1 year ago

+1

mighty-services commented 11 months ago

+1

github-actions[bot] commented 5 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

lafe commented 5 months ago

Bump. This would still be a very nice feature to have.

cooperferguson42 commented 3 weeks ago

This would be a nice addition to the advanced section