title: How to get protocol behind cloudfront / load balancer with nodejs?
body: <p>I'd like to redirect all users using http protocol to https. However I'm behind an aws cloudfront + load balancer. </p>
  
  <p>How can I determine the original client protocol of the request in nodejs?</p>
  
  <p>How can I redirect the user? Is it the right way to use node or are there other possibilities with the load balancer / cloudfront?</p>