Caddy was exactly what i needed. It magically solved the problem..
mfat
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.
But I can't access jellyfin remotely.
I don't want to remember port numbers. I'm trying to give each service its own subdomain.
It's easily detected by firewalls in China and Iran.
Thanks for the detailed reply. But I'm still confused. Do I need a separate ssh tunnel for every single service I run on my local server?
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?
All protocols are blocked. Proxying through v2ray/xray still works.
Shadowsocks is deprecated and doesn't work anymore.
I use Balena Etcher.
Why not use Beeper?
Sorry i should have said i wanted a server not a client.