mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-01 11:20:59 +03:00
Unable to login to Jellyfin through NGINX #712
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Verequies on GitHub (May 26, 2019).
Describe the bug:
Unable to login to Jellyfin when connecting through NGINX, connecting directly to the IP works, however I would rather not expose that..
To Reproduce:
Try to login through NGINX.
Expected behavior:
You're successfully logged in.
Logs:
You receive this message when trying to login:
"Connection Failure - We're unable to connect to the selected server right now. Please ensure it is running and try again."In the browser console this is reported:
/emby/Users/authenticatebyname:1 Failed to load resource: the server responded with a status of 400 ()System:
@DrPandemic commented on GitHub (May 26, 2019):
Could you share your NGINX config please? This might help someone find the problem.
@Verequies commented on GitHub (May 26, 2019):
I was running 10.2.2 before this with the same config and all was well. Just been messing around a bunch with it and narrowed it down to my websocket parameters.
For some reason Jellyfin doesn't like:
However its required for the websockets to work. If comment out those header lines, reload nginx, login, uncomment them, reload, and refresh. You can see the websockets connect without 404.
However I then notice another error:
This is my server block:
This is my
ssl_params:And this is my
socket_params:@speedfreak01 commented on GitHub (May 29, 2019):
Do you have
location /embywebsocket { }configured?Make sure your config is the same as the docs, https://jellyfin.readthedocs.io/en/latest/administrator-docs/reverse-proxy/#nginx
That worked for me.
@Verequies commented on GitHub (May 30, 2019):
@speedfreak01 Thanks heaps! I did not realise there was updated documentation. I had assumed it was a bug since everything was fine with 10.2.2.
@zuosc commented on GitHub (Aug 6, 2019):
I have the same problem. My Jellyfin version is 10.3.7
this is my Nginx config
@DrPandemic
OK, I find this:
https://github.com/jellyfin/jellyfin/issues/1266
remove
Everything is ok