Friday 5 May 2017

Nginx on 443, but node handling ssl certificates

We have nginx running two servers (port 80 and 443). These proxy_pass our upstreams:

   upstream app_nodes {
       ip_hash;
       server 127.0.0.1:3000;
       server 127.0.0.1:3001;
    }

    upstream app_nodes_https {
      ip_hash;
      server 127.0.0.1:8000;
      server 127.0.0.1:8001;
    }

For port 80, this is fine. However, for 443 this fails because we don't have ssl certs defined within nginx. We need our node.js app (listening on port 8000/8001) to handle the certificates to support many domains dynamically.

Is there a way to have nginx simply proxy our upstream servers and let them handle ssl?

Thank you



via dzm

No comments:

Post a Comment