I’m currently using
Express 2.x
Node 0.8.x
Do I have to pass
key and cert parameters to express.createServer() to handle SSL by Node.js?
Or SSL is handled by Nginx on Heroku?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nope, SSL termination happens at the load balancer, before encrypted traffic reaches your node app:
You can check
req.headers['x-forwarded-proto'] === 'https'to see which protocol the request came in with.Related: configure jetty ssl in heroku