A reverse proxy terminates HTTPS on 443 and forwards to your app on localhost:3000 (or another port). Nginx is the usual choice.
Steps
Install Nginx:
sudo apt updatesudo apt install -y nginxCreate a site (example to 127.0.0.1:3000) under /etc/nginx/sites-available/app and enable it.
sudo ln -s /etc/nginx/sites-available/app /etc/nginx/sites-enabled/sudo nginx -tsudo systemctl reload nginxIn the server block use proxy_pass http://127.0.0.1:3000; plus Host and X-Forwarded-For headers.
Add SSL with Certbot once DNS points at the VPS.
Tips
- Bind the app to 127.0.0.1 only — not a public 0.0.0.0 listener.
- Always run nginx -t before reload.
ext step
eed a dedicated IPv4 for your domain? Get a Xernode VPS.