简体   繁体   English

如何在Appfog上设置Node HTTPS

[英]How to set up Node HTTPS on Appfog

The way the appfog documentation reads is that as long as you use their provided domain you will get free SSL. appfog文档的读取方式是,只要您使用其提供的域,您将获得免费的SSL。

But as far as I understand things you need a .KEY and a .CERT file in order for NodeJS to start a https server. 但是据我了解,您需要一个.KEY和.CERT文件,以便NodeJS启动https服务器。

Am I missing something or do they really only support https on custom domains...? 我是否缺少某些东西,或者它们真的仅支持自定义域上的https ...?

Thanks gals and guys! 感谢gal和伙计们!

Appfog Documentation in question: https://docs.appfog.com/customize/ssl 有问题的Appfog文档: https ://docs.appfog.com/customize/ssl

You can use https right away with their provided domain name, eg, myapp.aws.af.cm . 您可以立即使用https和其提供的域名, 例如myapp.aws.af.cm When using their provided domain name, then AppFog handles SSL termination so your app doesn't need to do anything. 使用提供的域名时,AppFog会处理SSL终止,因此您的应用无需执行任何操作。

Also, if you need to know the protocol that was used on the request, then you can look at the X-Forwarded-Proto header that is added by AppFog during routing. 另外,如果您需要了解在请求中使用的协议,则可以查看由AppFog在路由过程中添加的X-Forwarded-Proto标头。

The info for SSL for Custom Domains is for when you are using your own custom domains. 自定义域的SSL信息适用您使用自己的自定义域的情况。 Then you will need to go through more setup, ssl certs, etc. 然后,您将需要进行更多设置,ssl证书等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM