![]() |
jellyfin NPM https - no images in local network - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access) +---- Thread: jellyfin NPM https - no images in local network (/t-jellyfin-npm-https-no-images-in-local-network) |
jellyfin NPM https - no images in local network - deadcxap - 2023-12-02 The essence of the problem: I have a nas UNRAID installation, Jellyfin and Nginx Proxy Manager containers are installed. Nas is connected to the router, the provider gives me a fixed external IP, my domain is linked to it. Ports 80 and 443 were forwarded to NPM on router, a subdomain was configured to access jellyfin from the Internet, in the jf configuration I specified my domain and server ip as a reverse proxy ip (NPM works on it, right?..). I didn’t do in NPM initially no special settings - just added the internal ip and http port jellyfin. But with this setup, I received constant errors when watching together with friends or connecting to the server remotely. At the same time, other programs on the server worked without problems through NPM - access was available both from within the home network and from an external one. NO PROBLEM. In search of a solution to the problem, I found official instructions for setting up the nginx config. I tried to implement it through the NPM web interface, but nothing worked. Next, I found the configuration file created by NPM and edited it manually (I checked - this also works, the config does not change, and is read by NPM correctly), adding 3 location sections according to the instructions, plus the specified add_header. And this is where the problems begin. At random times, pictures simply disappear via links from third-party domains (a form for searching and replacing images for a film). The chrome developer tools indicate that the "Cross-Origin-Resource-Policy" setting is incorrect. Setting this header to "cross-origin" does not solve the problem. Complete removal from the configuration of any mention of Cross-Origin-Resource-Policy and related ones does not solve the problem. Restarting the browser helps, about once in 3 times. The problem only occurs when connecting from within the local network, and only to the assigned domain. Yes, in theory I can enter http://ip:port when I'm at home... But we assign beautiful domain names just so as not to do this, isn't it? My nginx config: Code: server { I'm already going crazy, I tried everything possible in all possible options, I tried to add different headers according to the recommendations from the chrome developer tool, I tried to add external image domains to the trusted ones above... It doesn't help. Only sometimes the situation became even worse - playback stopped working when subtitles were turned on, for example. Or syncplay starts disconnecting every 10 minutes... RE: jellyfin NPM https - no images in local network - TheDreadPirate - 2023-12-03 When you initially setup NPM did you also have proxy the websocket? From the official nginx doc. Code: location /socket { https://jellyfin.org/docs/general/networking/nginx/ RE: jellyfin NPM https - no images in local network - deadcxap - 2023-12-04 Yes, I initially created a location in NPM 2 - / with code for integrating jellyscrub and /socket with code from the manual, like yours. But in this configuration, nginx does not start at all; the web interface displays a red dot and startup errors in the container logs. I don’t remember exactly, but it seems like deleting the line proxy_http_version 1.1; solved the problem. But in this case, there were still problems with syncplay and playing movies with subtitles turned on. RE: jellyfin NPM https - no images in local network - TheDreadPirate - 2023-12-04 I just migrated from apache to nginx today. Remove this entire section. Code: location = /web/ { RE: jellyfin NPM https - no images in local network - deadcxap - 2023-12-04 (2023-12-04, 03:43 AM)TheDreadPirate Wrote: I just migrated from apache to nginx today. Remove this entire section. I tried it, but the "Cross-Origin-Resource-Policy" errors still persist. RE: jellyfin NPM https - no images in local network - TheDreadPirate - 2023-12-04 Do you have any themes or custom CSS? RE: jellyfin NPM https - no images in local network - deadcxap - 2023-12-06 no, the only third-party plugins and modifications are jellyscrub and a couple of metadata grabbers. RE: jellyfin NPM https - no images in local network - TheDreadPirate - 2023-12-06 One of the folks in the matrix chat wrote up an NPM guide because you aren't the only person recently that has had issues getting NPM to work with jellyfin. See if their draft helps you out. https://github.com/Ladrien-git/jellyfin.org/blob/master/docs/general/networking/nginxproxymanager.md RE: jellyfin NPM https - no images in local network - deadcxap - 2023-12-07 (2023-12-06, 04:18 PM)TheDreadPirate Wrote: https://github.com/Ladrien-git/jellyfin.org/blob/master/docs/general/networking/nginxproxymanager.md Um... There's a 404 error. |