How to configure nodejs if https is used under nginx server?

  node.js, question

I have applied for a certificate on startssl and intend to make the website support https.

Nginx proxy is used and then forwarded to nodejs

Now nginx is configured as https, which also shows success.

Do you want to ask nodejs whether to change to https or just use the previous http?

My attempt to change to https was unsuccessful: there was a problem with the security certificate.

Nginx related codes:

upstream nodejs {
 server 127.0.0.1:8090;
 bracket
 
 server {
 root /usr/share/nginx/myblog/public;
 #tryfiles $uri $uri/index.html @express;
 listen 443 ssl;
 ssl on;
 server_name  tempwrite.msocca.com  sxgift.cn  my.sxgift.cn 10000h.top;
 
 ssl_certificate  /etc/nginx/conf.d/ssl/1_www.10000h.top_bundle.crt;
 ssl_certificate_key   /etc/nginx/conf.d/ssl/ssl_ca.key;
 
 ssl_session_timeout 5m;
 
 
 location / {
 proxy_pass http://nodejs;
 bracket
 location ~.*\.(ico|jpe?  g|png)$ {
 expires 2d;
 bracket
 
 bracket

When nginx deploys ssl, nodejs does not need to make any changes.

You have so many server_names configured above, but look at the certificate file, which is a certificate of 10000h.top subdomain, and your server _ name does not have a domain name matching this certificate at all.

Guess, can match the certificate and access the normal domain name is:https://www.10000h.top/