HTTPS (TLS/SSL) server on Nitrous.IO

2019-05-22 16:20发布

May I ask how to create TLS server on Nitrous.IO Boxes? I think what I have to get for that at least are cert.pem and key.pem or something like that.

2条回答
手持菜刀,她持情操
2楼-- · 2019-05-22 16:48

For me, https works out of the box.

I set my server to listen on port 3000, configured the Nitrous preview port to 3000, and then I can get access via:

(This URL is just for illustration; your URL will differ.)

Within the application itself, you can X-Forwarded-Proto request header will tell you if the request was http or https.

查看更多
乱世女痞
3楼-- · 2019-05-22 16:58

Depending on what region you are in, you can get SSL authentication automatically. Will that suffice?

http://help.nitrous.io/ssl/

查看更多
登录 后发表回答