2024-03-27, 06:23 PM
I just noticed a mistake on one of my prior posts. Also re-reading the Nginx docs. I blended your config with our Nginx docs. There were some weird things with yours. Make a copy of yours and then replace the original with this.
Code:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name jellyfin.*;
include /config/nginx/ssl.conf;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
client_max_body_size 0;
set $jellyfin 192.0.0.2
location / {
# Proxy main Jellyfin traffic
proxy_pass http://$jellyfin:8096;
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;
}
# location block for /web - This is purely for aesthetics so /web/#!/ works instead of having to go to /web/index.html/#!/
location = /web/ {
# Proxy main Jellyfin traffic
proxy_pass http://$jellyfin:8096/web/index.html;
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;
}
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;
}
}
Jellyfin 10.8.13
Ubuntu 22.04.4 LTS w/HWE Kernel (bare metal)
Intel i3 12100
32GB DDR4
Intel Arc A380 (ASRock)
OS drive - Intel X25-M G2 160GB
Storage
WD Green 3TB (samba shares)
WD Red 3TB CMR (JF Library)
WD Red Pro 6TB CMR (JF Library, samba share backup, WIP media)
Ubuntu 22.04.4 LTS w/HWE Kernel (bare metal)
Intel i3 12100
32GB DDR4
Intel Arc A380 (ASRock)
OS drive - Intel X25-M G2 160GB
Storage
WD Green 3TB (samba shares)
WD Red 3TB CMR (JF Library)
WD Red Pro 6TB CMR (JF Library, samba share backup, WIP media)