2024-11-12, 03:47 PM
I just get this working.
"^~ /jellyfin/" in the location directive (and the rewrite) was the solution. At the moment it is working fine. I have to test more
"^~ /jellyfin/" in the location directive (and the rewrite) was the solution. At the moment it is working fine. I have to test more
Code:
location ^~ /jellyfin/ {
proxy_pass http://192.168.1.91:20004/;
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-Host $http_host;
proxy_buffering off;
sub_filter '/web/' '/jellyfin/web/';
sub_filter '/socket' '/jellyfin/socket';
sub_filter '/api/' '/jellyfin/api/';
sub_filter '/touchicon' '/jellyfin/web/touchicon'; # Redireccionar iconos
sub_filter_once off;
rewrite /jellyfin/(.*) /$1 break;
}