[PATCH] Proxy: make timeout directives accept variables

Maxim Dounin mdounin at mdounin.ru
Wed Feb 1 16:58:38 UTC 2017


On Wed, Feb 01, 2017 at 08:40:55AM -0800, Thibault Charbonnier wrote:

> > On Feb 1, 2017, at 4:54 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> > 
> >  until there is a way to introduce variables 
> > support with less effort.
> What do you suggest to reduce the patch size? Should it take 
> care of those other timeout directives in other modules? 
> One of my other hunch was to add the complex field on the 
> ngx_http_upstream_conf_t struct itself for widespread support. 
> Would you suggest this?
> The intent behind my patch was to gather feedback and iterate 
> over it with your suggestions. 

I'm highly sceptical about introducing variables support 
everywhere just to save some configuration complexity in very 
special cases.  In most cases there better ways to organize things 
without using variables, as initial nginx configuration approach 

Maxim Dounin

More information about the nginx-devel mailing list