It was working for a short time but it stopped working and I don't know why. So I scrapped my install and updated it fresh and I still don't have access. I can cast between instances of Jellyfin but not to my Chromecast Ultra.
Setup
- Jellyfin server connected over ethernet to router
- Jellyfin server running in container on Ubuntu
- Jellyfin container is accessed through Nginx reverse proxy.
-
Reverse proxy has SSL Cert using Acme.sh and DNS01 for video.voh.haus
server { # Nginx versions prior to 1.25 #listen 443 ssl http2; #listen [::]:443 ssl http2;
# Nginx versions 1.25+ listen 443 ssl; listen [::]:443 ssl; http2 on; server_name video.voh.haus; ## The default `client_max_body_size` is 1M, this might not be enough for some posters, etc. client_max_body_size 20M; # Comment next line to allow TLSv1.0 and TLSv1.1 if you have very old clients ssl_protocols TLSv1.3 TLSv1.2; ssl_certificate /etc/ssl/acme/video.voh.haus_ecc/fullchain.cer; ssl_certificate_key /etc/ssl/acme/video.voh.haus_ecc/video.voh.haus.key; ssl_prefer_server_ciphers on; # use a variable to store the upstream proxy set $jellyfin 127.0.0.1; # Security / XSS Mitigation Headers add_header X-Content-Type-Options "nosniff"; # Permissions policy. May cause issues with some clients add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()" always; # Content Security Policy # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP # Enforces https content and restricts JS/CSS to origin # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted. add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; font-src 'self'"; location / { # Proxy main Jellyfin traffic proxy_pass http://$jellyfin:8096; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Host $http_host; # Disable buffering when the nginx proxy gets very resource heavy upon streaming proxy_buffering off; # Dynamically patch the missing server ID response sub_filter '"CastReceiverId":""' '"CastReceiverId":"24AEE4FA"'; sub_filter '"CastReceiverId":null' '"CastReceiverId":"24AEE4FA"'; sub_filter_once on; } location /socket { # Proxy Jellyfin Websockets traffic proxy_pass http://$jellyfin:8096; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Host $http_host; }}
server { listen 80; listen [::]:80; server_name video.voh.haus; return 301 https://$host$request_uri; }
-
Local DNS handled through PiHoles that point video.voh.haus to 192.168.8.13
-
Cloudflare DNS also points video.voh.haus to 192.168.8.13
-
Jellyfin app connected to 5g wifi channel
-
Chromecast Ultra connected to 5g wifi channel
-
Transcoding setup for Intel QuickSync(QSV) with /dev/dri/renderD128 as the QSV Device.
-
I have enabled hardware decoding for everything
-
I have enables the Hardware Encoding, H.264 encoder and HEVC encoder
-
I am allowing encoding in HEVC format
-
Added the CastRecieverApplications tags to system.xml
<CastReceiverApplications> <CastReceiverApplication> <Id>F007D354</Id> <Name>Stable</Name> </CastReceiverApplication> <CastReceiverApplication> <Id>6F511C87</Id> <Name>Unstable</Name> </CastReceiverApplication> </CastReceiverApplications>
-
Under Trickplay I enabled hardware decoding and hardware accelerated MJPEG encoding.
-
Under Networking I have the Published Server URIs set to https://video.voh.haus
Anything I might be missing?
Source: r/jellyfin · by /u/Tyson_NW