[Help] NPM Stream based on domain?
from ram@bookwormstory.social to selfhosted@lemmy.world on 28 May 2024 18:15
https://bookwormstory.social/post/1863994

I set up Nginx Proxy Manager, and one of my services I want to serve is my Jellyfin which is hosted on another machine. Instead of Proxying the stream though, it’d be easier on the network to use the Nginx Stream module for facilitating that, I would expect.

The issue I’m facing is it seems like the only way to set up Nginx Stream is based on port, rather than by domain, and if I want to do it based on domain, I’d be proxying the data instead.

Is there any way to Stream to my Jellyfin rather than Proxying?

Thanks!

#selfhosted

threaded - newest

catloaf@lemm.ee on 28 May 2024 18:26 next collapse

TCP streams don’t have any concept of hostname.

I would test it both ways and see if there’s actually a measurable difference. I have Jellyfin behind Traefik and I don’t have issues.

Also, Jellyfin docs do have a page on using nginx: jellyfin.org/docs/general/networking/nginx

lemmyvore@feddit.nl on 28 May 2024 20:00 collapse

The Jellyfin streaming has been designed with HTTP so I don’t think it will benefit from a TCP proxy. Plus as you’ve noticed with TCP you lose the ability to route by domain name.