I’ve posted around a few places to try get help but haven’t found anyone who is willing as of yet. I think I need help from someone with nginx reverse proxy experience.
I’ve already wrote up a issue here:
So I won’t bother repeating myself. I’ve done as much troubleshooting as I can and capture what I thought to be the most relevant information in the github issue above.
Alright, so I just spent the time to recreate the entire config for you:
I wasn’t able to recreate your issue (checkout to /opt, update docker-compose.yml with your media paths, and then point to your docker host with a host file)
FWIW I don’t have a problem running jellyfin behind an nginx proxy, but I also don’t have the /socket path specifically mentioned in my config. I can play around with this a bit more later though
I mean that still doesn’t explain why you need to specifically define the socket path when it already matches the first location. The only difference between the two locations I see is with proxy buffering? Does having a second location let nginx handle the connections with a second worker?
No I think it comes down to setting specific headers to get sockets to work on that specific subpath which would(could?) otherwise interfere with the main server block.
It’s probably worth asking the devs about why they had to do that.
But we can debate the usefulness on this later: what I’m more interested in is if adding that to your config solved your issue.
Ohhh that’s where the ‘Upgrade’ and ‘Connection’ bits come in? I think I missed that. But couldn’t you just throw the upgrade and connection blocks into the main location again and just be done with it?
I mean that’s what I have in mine and it works, but I haven’t done any kind of performance testing on it, nor do I really know how… Something to look into though.