• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Nginx Proxy Manager Config

     
    • 0 Vote(s) - 0 Average

    Nginx Proxy Manager Config

    juanlasp
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #1
    2024-11-12, 07:24 AM
    Hello everyone!
    I'm trying to configure Jellyfin to serve over HTTPS using Nginx Proxy Manager (NPM), but I’m running into some issues.


    This is my setup:
    • TrueNas host 192.168.1.91 (accessible on port 5050)
    • I have Jellyfin installation (accesible usgin http://192.168.1.91:20004) 
    • I setted up base URL to /jellyfin in my Dashboard.
    • NPM host (192.168.1.150)
    NPM is configured with a ProxyHost for TrueNAS (192.168.1.91:5050) with SSL (Force SSL, HTTP/2 support, HSTS enabled), allowing secure access to the TrueNAS portal.  I also have two other apps configured as /app1 and /app2, both accessible via my NPM setup.

    The issue arises when configuring Jellyfin with NPM. Here’s the current advanced configuration I have set up in NPM:
    Code:
    location /jellyfin/ {
        proxy_pass http://192.168.1.91:20004;
        proxy_buffering off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_headers_hash_max_size 2048;
        proxy_headers_hash_bucket_size 128;
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "0";
        add_header X-Content-Type-Options "nosniff";
    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'; frame-ancestors 'self'";
    }

    I tried the official documentation here: https://jellyfin.org/docs/general/networ...xy-manager
    And tried some changes trying make it work, but nothing is having a good result. Any ideas?

    Sorry for my english
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-11-12, 02:11 PM
    I am pretty sure you need to use the custom location UI to add /jellyfin/ instead of the advanced configuration tab.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    juanlasp
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #3
    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

    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;
    }
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode