最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Https Nginx reverse proxy for Node, do I need https between both? - Stack Overflow

programmeradmin2浏览0评论

I am planning to add a Nginx server as reverse proxy for my current HTTPS Node server. Is it required for Node to still listen for HTTPS or is it OK to listen for HTTP since the server to user HTTPS will be managed from Nginx ?

In short :

  • For Nginx : it will be listening port 443 for HTTPS and use the required certificates, then redirect to port 3000 Node.

  • For Node : I plan to remove HTTPS listening on port 443 then add a HTTP listening on port 3000.

Is it the right way ? If yes, how can I prevent the outer world from directly reaching the Node HTTP on port 3000 ?

发布评论

评论列表(0)

  1. 暂无评论