Closed PixnBits closed 4 years ago
There is @plant/https2 for this. I separated it to unify package interfaces between versions 1 and 2. Thus we have:
Plant/http2 may be used with Nginx (or other webserver) which handles TLS itself and returns unencrypted HTTP to your service. I think it's more popular case than direct listening of TLS connection by Node.js itself.
Ah, cheers! I missed @plant/https2, which indeed uses http2.createSecureServer
πββοΈ
(Even with nginx in front end-to-end encryption can be desirable given attacks in the news. π€)
The README uses @plant/http2 for
createServer
and @plant/http2 internally useshttp2.createServer
. The Node.js docs forhttp2.createServer
sayhttp2.createSecureServer
accepts any tls.createServer() options, buthttp2.createServer
makes no mention of these options.Is a TLS HTTP/2 server supported by plant and I missed how π or is that something that would need to be added?