I'm having difficulty getting a node.js app deployed as an Azure Web Site to listen on the appropriate port for SSL (within the Azure environment).
Serving up SSL requests in any other environment where I have control over the port is no problem and working fine. I don't believe this to be an issue with the app code (using Express, FYI).
Azure Web Sites seem to forward port 80 traffic from the load balancer to whatever port is available, which is set in the process.env.PORT
variable.
I don't see any relevant equivalent within process.env
for SSL traffic, despite having successfully loaded a cert into the Azure portal for the given Web Site and configured its bindings.
My question is this: how can I configure Azure to spit out the requisite file descriptor for traffic on port 443?
I've read a little on how to configure a worker in a Cloud Service here, but it doesn't seem applicable for a Web Site.
For reference, when I attempt to listen on either 443
or process.env.PORT
, I get the following error:
Application has thrown an uncaught exception and is terminated:
Error: listen EACCES
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)