HTTPS (TLS/SSL) server on Nitrous.IO

2019-05-22 17:08发布

问题:

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.

回答1:

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

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



回答2:

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:

  • http://silly-name-121212.nitrousapp.com:3000/
  • http://silly-name-121212.nitrousapp.com/
  • https://silly-name-121212.nitrousapp.com/

(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.