<div dir="ltr">Hi!<div><br></div><div>As far as I see Nginx have limited number of possible server parameters inside upstream block. It is enforced by function <span style="font-size:12.8000001907349px">ngx_http_upstream_</span><span style="font-size:12.8000001907349px">server for example.</span></div><div><span style="font-size:12.8000001907349px">Now, having my own upstream module how can I approach the task of adding a couple more parameters to a servers inside it?</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I would like to find a solution without resorting to patch Nginx source code, resilient to Nginx updates (self-contained, in other words) and having that -- as simple as possible.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div>I have to confess that this module is the only piece of C code I've ever wrote, and I was "taking inspiration" from other modules :-)</div><div><span style="font-size:12.8000001907349px">My best guess so far is overriding </span><span style="font-size:12.8000001907349px">ngx_http_upstream_</span><span style="font-size:12.8000001907349px">server (googling shows it's likely possible) with my own function which will find my new parameters, remove them from cf->conf and then call original function.</span><span style="font-size:12.8000001907349px"><br clear="all"></span><div><div class="gmail_signature"><div dir="ltr"><div><br></div>Best regards,<br>Dmitriy Shalashov<br></div></div></div>
</div></div>