[PATCH] Proxy: make timeout directives accept variables

Maxim Dounin mdounin at mdounin.ru
Wed Feb 1 12:54:33 UTC 2017


On Tue, Jan 31, 2017 at 10:17:36AM -0800, Thibault Charbonnier wrote:

> On 1/31/17 8:00 AM, Maxim Dounin wrote:
> > You may want to provide more details on what problem you are
> > trying to solve.
> The use-case was originally to use a longer proxy_read_timeout on 
> certain upstream locations without duplicating too much configuration 
> (our location block). I then thought it would be nice to have for other 
> timeout directives as well, and eventually reuse the code in other 
> modules as you suggested, so timeout directives could support variables 
> anywhere.

Clear enough, thank you.  Using an additional location might be a 
better solution, at least until there is a way to introduce variables 
support with less effort.

Maxim Dounin

More information about the nginx-devel mailing list