Cloud Foundry上的HTTPS节点应用程序 [英] HTTPS node app on Cloud Foundry
问题描述
是否可以在Cloud Foundry上部署一个侦听端口443上的HTTPS请求的node.js应用程序?
Is it possible to deploy a node.js app on Cloud Foundry that listens for HTTPS requests on port 443?
我可以找到对SSL支持的各种引用Cloud Foundry论坛,但没有HTTPS应用程序的实际示例。文章在cloudfoundry景观上设置SSL 似乎表明我需要安装nginx并使用它,但是没有足够的信息告诉我我需要做什么。
I can find various references to SSL support in the Cloud Foundry forums, but no actual examples of HTTPS apps. The article "Setup SSL on cloudfoundry landscape" seems to indicate that I need to install nginx and use that, but there is not really enough information there to tell me what I need to do.
推荐答案
SSL连接将在负载均衡器处终止,然后将未加密的HTTP连接转发到您的节点应用程序。
The SSL connection will terminate at the loadbalancer and then forward the unencrypted HTTP connection to your node app.
只需使用 https://your-app.cloudfoundry.com 而不是http:// ...
Just use https://your-app.cloudfoundry.com instead of http://...
这篇关于Cloud Foundry上的HTTPS节点应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!