• 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 Networking & Access Inconsistency while login to services through my reverse proxy

     
    • 0 Vote(s) - 0 Average

    Inconsistency while login to services through my reverse proxy

    Need to hit "Reconnect" several times until success
    Javier Fernandez Romeo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Oct
    Reputation: 0
    #1
    2025-04-08, 09:55 AM (This post was last modified: 2025-04-08, 09:56 AM by Javier Fernandez Romeo. Edited 1 time in total.)
    Hello all.

    I have my Jellyfin server behind a reverse proy (NPM), a dynamic DDNS provider (DuckDNS) and I am out of CG-Nat.

    Everytime I try to log in, via web or app, I have to retry several times (sometimes I get in at the first try, sometimes I need to hit login 4 or 5 times in a row until it succeeds).

    I guess it has something to do with timeout limits and the such, but I have no idea where to look at. The NPM logs does not help.

    If I try to login to the service while on the same LAN (or through tailscale), there is no problem at all, but when accessed from the internet is when the logins are inconsistent, so I have isolated the reverse proxy as the main reason for the malfunctioning behaviour.

    My NPM docker compose is as follows (machine A)

    Quote:services:
      nginx-proxy-manager:
        container_name: nginx-proxy-manager
        image: jc21/nginx-proxy-manager:latest
        ports:
          - "82:80"
          - "81:81"
          - "83:443"
        volumes:
          - ${DATA_DIR}/nginx-proxy-manager:/data
          - ${DATA_DIR}/nginx-proxy-manager/logs:/data/logs
          - ${DATA_DIR}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
          - ${DATA_DIR}/nginx-proxy-manager/snippets:/snippets
          - /etc/localtime:/etc/localtime:ro
        environment:
          - TZ=${TZ}
        restart: always
        network_mode: bridge
        labels:
          - "com.centurylinklabs.watchtower.enable=true"
    networks:
      default:
        external: true
        name: nginx-proxy-manager

    And my Jellyfin docker compose instance (machine B):

    Quote:services:
      jellyfin:
        image: jellyfin/jellyfin:latest
        container_name: jellyfin
        user: ${PUID}:${PGID}
        group_add:
          - "105" #render
          - "44" #video
          - "102" #input
        network_mode: 'host'
        volumes:
          - ${DATA_DIR}/jellyfin/jellyfin:/config
          - ${DATA_DIR}/jellyfin/jellyfin/cache:/cache
          - ${MEDIA_DIR}/peliculas:/peliculas:ro
          - ${MEDIA_DIR}/series:/series:ro
        restart: unless-stopped
        environment:
          - JELLYFIN_PublishedServerUrl=${JELLYFIN_PUBLISHED_SERVER_URL}
          - TZ=${TZ}
        devices:
          - /dev/dri:/dev/dri
        extra_hosts:
          - "host.docker.internal:host-gateway"
        labels:
          - "com.centurylinklabs.watchtower.enable=true"
    networks:
      default:
        external: true
        name: nginx-proxy-manager


    In trusted proxies under network settings, I have the following subnets as recommended in the Jellyfin "Important notes" on 10.10.7 release (LAN, Tailscale, Docker, Localhost)

    Quote: 192.168.0.0/16, 100.0.0.0/8, 172.0.0.0/8, 127.0.0.1


    Thanks in advance.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-08, 02:04 PM
    Did you check "Cache Assets" in Nginx? What do you have under the advanced 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]
    Javier Fernandez Romeo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Oct
    Reputation: 0
    #3
    2025-04-09, 09:10 PM
    (2025-04-08, 02:04 PM)TheDreadPirate Wrote: Did you check "Cache Assets" in Nginx?  What do you have under the advanced tab?

    Thank you for the quick reply, and sorry for the delay.

    This is my NPM configuration:

    [Image: 1.png]
    [Image: 20b57eed0f8f9e1ca.png]
    [Image: 3.png]

    Honestly, I do not remember where I got the advanced tab options from.

    Thanks in advance.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-04-10, 12:50 PM (This post was last modified: 2025-04-10, 12:51 PM by TheDreadPirate.)
    Disable cache assets. It does not benefit Jellyfin, consumes a lot of memory, and can cause weird behaviors.

    The content of your advanced tab came from our documentation, which we have since updated. Remove everything in the advanced tab except the top two lines.

    Code:
    # Disable buffering when the nginx proxy gets very resource heavy upon streaming
        proxy_buffering off;
    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]
    Javier Fernandez Romeo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Oct
    Reputation: 0
    #5
    2025-04-10, 01:32 PM
    (2025-04-10, 12:50 PM)TheDreadPirate Wrote: Disable cache assets.  It does not benefit Jellyfin, consumes a lot of memory, and can cause weird behaviors.

    The content of your advanced tab came from our documentation, which we have since updated.  Remove everything in the advanced tab except the top two lines.

    Code:
        # Disable buffering when the nginx proxy gets very resource heavy upon streaming
        proxy_buffering off;

    Thank you a lot.

    All done, and nginx and jellyfin dockers rebuilt.

    Let's cross fingers Smiling-face
    « 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