Re: Directive inheritance

2017-10-07 Thread Francis Daly
On Fri, Oct 06, 2017 at 10:38:54PM +0200, Lucas Rolff wrote: Hi there, > I do use some of the openresty modules such as the ngx_headers_more > module, and it's pretty explicit about it's inheritance. That's probably a good example to look at. Compare the ngx_http_headers_more_merge_loc_conf()

Re: Directive inheritance

2017-10-06 Thread Lucas Rolff
Hi Francis, Thank you a lot for your response - from a directive point of view - I don't use a lot of different headers in that sense, it's really just some settings that I would want to avoid repeating again and again - I like clean configs - and generally speaking I really want to inherit

Re: Directive inheritance

2017-10-06 Thread Francis Daly
On Fri, Oct 06, 2017 at 07:32:51PM +, Lucas Rolff wrote: Hi there, > I know that there’s some settings such as proxy_pass which can’t inherit from > the parent location or server block, however – is there any semi-easy way to > figure out if a directive in nginx or it’s modules gets

Directive inheritance

2017-10-06 Thread Lucas Rolff
Hi guys, I do a lot of nginx configuration which contains plenty of “location” blocks, however – I often see myself duplicating a lot of directives throughout my configuration which can sadly make a single nginx server block about 400 lines long, often due to repeated settings. Not only is it