2025-02-14, 03:37 AM
(This post was last modified: 2025-02-14, 03:38 AM by bitmap. Edited 1 time in total.)
Code:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name jellyfin.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app jellyfin;
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass http://10.0.0.94:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
}
location ~ (/jellyfin)?/socket {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app jellyfin;
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass http://10.0.0.94:8096;
}
}
Are you using SWAG? This looks similar to my config that was originally a template. I'm wondering why you're invoking "set" and then specifying an IP below? The upstream_app variable can be used to set the IP address, but I don't think that's the issue. Sharing portions of my config because they're different than yours. My root location block includes:
Code:
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app $jellyfin;
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
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;
}
And my socket location block includes:
Code:
location ~ (/jellyfin)?/socket {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app $jellyfin;
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
}
I don't see any headers for your socket location and the only other big one I see is proxy_buffering. You also should be aware that invoking http2 in the way you have is deprecated and should be revised to this:
Code:
server {
listen 443 ssl;
http2 on;
You may also try setting the client_max_body_size to something like 10M or 20M but I don't think that will make much (if any) difference. TDP can advise you better than I can...they helped me iron out the kinks in my own config...
Jellyfin 10.10.5 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage