Njs: Would ngx.fetch() support https?

Created on 25 Feb 2021  路  1Comment  路  Source: nginx/njs

limitations: only the http:// scheme is supported, redirects are not handled

redirects can be handled by user, but njs should support https itself

answered question

>All comments

Hi @crasyangel,

ngx.fetch() is implemented mostly for the stream module where there is no its own r.subrequest(). At this moment there are no plans for https in ngx.fetch().

For http module you can use r.subrequest(), with it you can configure any backend nginx supports (proxy_pass, grpc_pass, ...). Proxy module supports https.

Was this page helpful?
0 / 5 - 0 ratings