VPS with Ubuntu 20.04 Nginx configuration for Port forwarding & SSL

Hi,
I have set up VPS with Ubuntu 20.04 with Nginx, Node js & npm to run API

My domain example.com with hosting panel (cPanel) is set to another Vps

This server has subdomain app example com rests on another VPS with dedicated IP and subdomain pointed to this server

I would like to set up SSL & open port app example.com 8080 in Nginx

Please guide, how do I do it

Thanks

You can set up reverse proxy. For example:

nginx reverse proxy with TLS/SSL -> app server at 8080

Do check HowTo: Use Nginx As Reverse Proxy Server and CentOS / Redhat: Install nginx As Reverse Proxy Load Balancer