Thanks I understand the theory behind this but I can't get it to work.
I have a jellyfin.mydomain.com subdomain pointing at my VPS ip.
On my home server I have Nginx Proxy Manager listening to 192.168.8.1:8998 (http) and 8999 (https)
From my home server I forward port 80 from the VPS to local port 8999 like this:
ssh -R 80:127.0.0.1:8998 root@vps-ip
Then on npm I define a proxy to localhost:8096 (jellyfin) for any traffic sent to jellyfinn.mydomain.com.
Thank you very much my question is should npm be installed on my VPS or my local server? What SSH command should I use to connect the two machines in a way that npm works?
Thanks but I don't seem to get the point of these proxies. What do they do exactly? Can you give me an example please?