2023-12-10, 11:16 PM
(This post was last modified: 2023-12-12, 11:45 PM by Pamphlet6795. Edited 3 times in total.)
I found this comment on the Jellyfin reddit explaining how the Chromecast connection works. https://www.reddit.com/r/jellyfin/commen...are_button
It seems like there is probably no way around this since the Chromecast will not trust a local https url with a domain certificate. Am I correct in assuming this would also not work externally with a proxy? Does this work with normal reverse proxies? When I hit the API described in the post I can only get the local address. So would an external client over a standard reverse proxy try to connect to the local address for casting?
EDIT: Made some progress in this. In my nginx proxy, I have created a location which just returns the same body from that API call but with the local address swapped out for the proxy hostname. I think this should be enough to get Chromecast to work on remote clients, but I have no idea how I would do the same thing locally without a second local reverse proxy.
FOR ANYONE READING IN THE FUTURE - Do not handle this with the proxy. Under the server networking settings, Firewall and Proxy Settings -> Published Server URIs, set it to "all=YOUR_HOSTNAME". This will force the API to return the proxy hostname.
EDIT 2: Chromecast does not work remote with this setup.
It seems like there is probably no way around this since the Chromecast will not trust a local https url with a domain certificate. Am I correct in assuming this would also not work externally with a proxy? Does this work with normal reverse proxies? When I hit the API described in the post I can only get the local address. So would an external client over a standard reverse proxy try to connect to the local address for casting?
EDIT: Made some progress in this. In my nginx proxy, I have created a location which just returns the same body from that API call but with the local address swapped out for the proxy hostname. I think this should be enough to get Chromecast to work on remote clients, but I have no idea how I would do the same thing locally without a second local reverse proxy.
FOR ANYONE READING IN THE FUTURE - Do not handle this with the proxy. Under the server networking settings, Firewall and Proxy Settings -> Published Server URIs, set it to "all=YOUR_HOSTNAME". This will force the API to return the proxy hostname.
EDIT 2: Chromecast does not work remote with this setup.