• 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 Troubleshooting SOLVED: Bitrate limit not enforced when using Nginx Proxy Manager

     
    • 0 Vote(s) - 0 Average

    SOLVED: Bitrate limit not enforced when using Nginx Proxy Manager

    Bitrate limit not enforced when using Nginx Proxy Manager
    sthtyekujetyk
    Offline

    Junior Member

    Posts: 20
    Threads: 4
    Joined: 2023 Dec
    Reputation: 0
    Country:Italy
    #1
    2024-01-10, 05:44 PM
    I am running a docker instance that contains jellyfin and Nginx Proxy Manager, the latter port fowarded to WAN

    I have set up a proxy to google for / (I don't want anything on the root of the site) and a proxy_pass for jellyfin in the advanced tab, like this:

     
    Code:
    location ^~  /jellyfin {
        proxy_pass http://192.168.1.201:8096; #My jellyfin instance
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
        proxy_set_header Host $host;
        proxy_cache_bypass $http_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-Host $http_host;
        proxy_pass_request_headers on;
        proxy_buffering off;
    }

    In Dashboard --> Networking
        I have selected /jellyfin as Base url
        I have set my FQDN DDNS "mysite.ddns.net" as a known proxy

    The bitrate limit is never enforced, what am I missing here?
    Thanks in advance
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-10, 07:05 PM
    What version of Jellyfin and which docker image? The official jellyfin/jellyfin image?
    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]
    sthtyekujetyk
    Offline

    Junior Member

    Posts: 20
    Threads: 4
    Joined: 2023 Dec
    Reputation: 0
    Country:Italy
    #3
    2024-01-10, 09:43 PM (This post was last modified: 2024-01-10, 09:50 PM by sthtyekujetyk. Edited 1 time in total.)
    Version: 10.8.13

    Operating System: Linux

    Architecture: X64

    lscr.io/linuxserver/jellyfin:latest

    Edit:
    Do you guys enforce a no support for unofficial image policy? If so I apologize, i can try the official one
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-10, 09:53 PM
    FWIW, the reverse proxy has no affect on whether the bit rate is honored or not.

    Can you share with me examples of Jellyfin not honoring the max bit rate? Either screenshots or logs. Both?
    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]
    sthtyekujetyk
    Offline

    Junior Member

    Posts: 20
    Threads: 4
    Joined: 2023 Dec
    Reputation: 0
    Country:Italy
    #5
    2024-01-10, 10:21 PM (This post was last modified: 2024-01-10, 10:23 PM by sthtyekujetyk. Edited 1 time in total.)
    It was my understanding that the bitrate limit would get enforced only when you access your jellyfin instance over WAN. Doesn't it?

    My assumption was that somehow jellyfin didn't understand that it is being called from WAN because a LAN reverse proxy is calling it.
    I also can login using my admin account despite the fact i disable remote connections for that user

       

       

       

    Transcoding log
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-01-11, 04:19 AM (This post was last modified: 2024-01-11, 04:21 AM by TheDreadPirate. Edited 2 times in total.)
    The reverse proxy passes the requestor's IP.

    Code:
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    You can check in your jellyfin log by looking for this line.  "IsInLocalNetwork".

    Code:
    [INF] RemoteClientBitrateLimit: 40000000, RemoteIp: "<Client IP goes here>", IsInLocalNetwork: False

    Since you are not allowing remote connections, can I assume you are using a VPN?

    What subnets do you have in Dashboard > Networking > LAN Networks?

       
    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]
    sthtyekujetyk
    Offline

    Junior Member

    Posts: 20
    Threads: 4
    Joined: 2023 Dec
    Reputation: 0
    Country:Italy
    #7
    2024-01-11, 09:40 AM
    Setting the client IP from the log you mentioned as a known proxy fixed my issue
    I got my bitrate limit enforced and also got my admin account not available from WAN (as wanted and expected)

    No VPN was involved here
    Thank you very much for the support
    flame
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:India
    #8
    2024-09-17, 09:20 PM (This post was last modified: 2024-09-17, 09:35 PM by flame. Edited 1 time in total.)
    EDIT: Created a new thread rather than continuing here.
    « 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