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 {
 root /usr/share/nginx/myblog/public;
 #tryfiles $uri $uri/index.html @express;
 listen 443 ssl;
 ssl on;
 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;
 location ~.*\.(ico|jpe?  g|png)$ {
 expires 2d;

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 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: