-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images not loading in Docker setup with Jellyfin #1642
Comments
There's another problem with this approach: none of the links work, because they direct to My idea would be an optional field where the public URL for Jellyfin can be entered. If none is given, one can default to the full server URL. The public URL would have to be inserted in any external links (images, movies or series). If it helps prevent confusion, this might also be a Docker specific environment variable. It doesn't need to show up in the web UI settings, if it's documented well enough. |
I'm not a frontend guy and know nothing about React, but what I propose seems easy enough so I could write some preliminary code. I'll try to do this later today. |
I think I found the piece of code that needs to be changed, but I was not yet able to verify it. I think it's in |
I haven't entirely given up on this yet. However, I've not yet been able to extend the config file. It's overwritten whenever the container restarts and I haven't quite figured out where that happens. Additionally the project is a pain to build. I might have the wrong parameters, because I couldn't find proper build instructions anywhere, but building the React part takes almost an hour. 🤯 Could also be related to me building everything with Docker, but I really didn't want to install a bunch of dependencies on my system for what seems to be a one-time easy fix. I want to try Toolbox next and see if it makes (re)building faster. |
Oh wow. I've actually got a lot to report. First of all, I was able to lower the build time significantly by switching from a full Docker pipeline to using Distrobox (which is still container-based). Now it only took a few minutes to build and I was able to fix the remaining code issues pretty quickly. I've got a working implementation for an additional setting in config.json named However, I figured out an even better and easier solution (IMO). The reason why I like this better is because the underlying problem is not with EmbyStat, but with the Docker setup. If the media server were hosted anywhere else, we could just use the public address for EmbyStat and everything would work as expected. I'm not sure if that warrants a special config setting if it can be solved otherwise. I don't know how you're doing it @stephanrenggli , but I've got Jellyfin behind a reverse proxy, even in my home network. It is possible to alias a service defined in the same or in another docker-compose file. I'll document both cases here. Media server is not behind a reverse proxy
This supposes that you access your media server with something like Add the following lines to the links:
# e.g. jellyfin:192.168.0.42
- <media-server-service-name>:<ip> Media server is behind a reverse proxyIn my case the reverse proxy is defined in another compose file. We can just do the same as above, but use external_links:
# e.g. traefik:jellyfin.example.com
- <reverse-proxy-service-name>:<public-address> |
I am facing the same issue. Any updates? |
Bug report
Describe the bug
Due to the way images/thumbnails are loaded, they can not be loaded if an internal IP/DNS name is used to specify the Jellyfin server.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect images/thumbnails to load correctly. However since Jellyfin is seen to be available at
jellyfin:8086
and not a publicly available domain likejellyfin.mydomain.com
resources can't be loaded.Maybe EmbyStat could load all of these resources from Jellyfin first and then the Client loads the resources from EmbyStat and not via API from Jellyfin.
Example docker compose to achieve this setup:
Screenshots
![Capture](https://user-images.githubusercontent.com/5135902/137562028-daec02c7-2d5f-4ba5-aee7-5e299596695e.PNG)
![Capture](https://user-images.githubusercontent.com/5135902/137562817-3e8501d1-93df-4203-b54a-f4e291c216ae.PNG)
Obviously
jellyfin:8086
can't be resolved from my client because this is the docker internal DNS name.System (please complete the following information):
The text was updated successfully, but these errors were encountered: