<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>For a pet project of mine I'm trying to use njs to retrieve data from a number of different sources (URLs really) and assemble them into one single response. I tried to implement a proof of concept using subrequest (from ngx_http_js_module) to do so. I quickly realized that it works only for internal subrequests (i.e. not to external servers).</div><div><br></div><div>I worked around this with the following location:</div><div>    location = /fwd-proxy {<br>        proxy_pass $arg_tgt;<br>    }<br></div><div><br></div><div>We all know nginx is not really a forward proxy and this approach does not seem very nice for the long term.</div><div><br></div><div>So, I have a few cascading questions:</div><div>1 - Is there any plan to have subrequest from ngx_http_js_module support external URLs ?</div><div>2 - If answer to 1 is no, is there any plan to have another official js module implement it ?<br></div><div>3 - If no, what would make most sense: implement it as a 3rd-party module or completely move to something different (nginx Unit with Node.js comes to mind) ? And why one rather than the other ?</div><div><br></div><div>Thank you for reading so far and evne more thanks if you are kind enough to hit the reply button.</div><div><br></div><div>A.<br></div></div></div>