On Ubuntu a Node app behind nginx is strongest when the reverse proxy alone binds 80/443 and Express (or Nest) listens only on loopback. Let PM2 own cluster fan-out on that single private port — listing every worker in an nginx upstream doubles fail surfaces. Pin proxy_http_version 1.1 with Connection cleared for keepalive into Node, and always forward Host plus X-Forwarded-For / X-Forwarded-Proto so redirects and secure cookies stay on the public scheme. Keep any database port closed on the host firewall; only the reverse proxy should be reachable from the open internet.
Ops check after a pm2 reload or cert renew: pm2 status, a health hit on the private listen, then the same API path through the 443 server block. A brief 502 spike usually means nginx still talked to a draining worker; wait for the new cluster to accept, or tighten max_fails / fail_timeout so a half-dead process leaves the pool quickly. Log $upstream_status beside $request_time to separate TLS drift from a Node crash, and expose a readiness probe that fails when the event loop is wedged rather than when the socket merely accepts.