• 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 x-forwarded-for IP for docker compose stack?

     
    • 0 Vote(s) - 0 Average

    x-forwarded-for IP for docker compose stack?

    fhireman
    Offline

    Junior Member

    Posts: 18
    Threads: 5
    Joined: 2024 Nov
    Reputation: 0
    Country:Netherlands
    #1
    2025-08-11, 06:46 PM
    Hi there,

    I've been running jellyfin for about half a year now on my own server and recently port forwarded it so my parents can enjoy it as well.
    I've seen my internal Docker network IP pop up in the logs on the Jellyfin dashboard but not the actual external IP from my parents.

    Normally this would be the x-forwarded-for header that gets passed automatically through Caddy as a reverse proxy but I'm unsure how to tell Jellyfin to use this header IP instead of the Docker internal network one?

    My compose stack looks like this right now:
    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin:latest
        container_name: jellyfin
        volumes:
          - /home/jellyfin/config:/config
          - /home/jellyfin/cache:/cache
          - /mnt/media:/media
        expose:
          - "8096"
        devices:
          - /dev/dri/renderD129:/dev/dri/renderD129
        environment:
          - PUID=1000
          - PGID=993
        group_add:
          - "993"
        networks:
          - jellyfin-net
        restart: unless-stopped

      caddy:
        image: caddy:latest
        container_name: caddy
        ports:
          - "80:80"
        volumes:
          - ./conf:/etc/caddy
        depends_on:
          - jellyfin
        networks:
          - jellyfin-net
        restart: unless-stopped

    networks:
      jellyfin-net:
        driver: bridge

    I saw that a lot of the logs that have IPs in them were in the /home/jellyfin/config dir so I assume I need to point my Fail2Ban jail to these logfiles to pick up on failed logins?


    Thanks in advance!
    Ubuntu Server 24.04
    Intel i5 12500
    Intel Arc A380
    OS 500GB SSD
    Storage 6TB WD Red Pro
    bitmap
    Offline

    Community Moderator

    Posts: 995
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #2
    2025-08-11, 09:10 PM
    Add your docker IP to the known proxies, which should help.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    fhireman
    Offline

    Junior Member

    Posts: 18
    Threads: 5
    Joined: 2024 Nov
    Reputation: 0
    Country:Netherlands
    #3
    2025-08-12, 02:33 PM
    Thanks, will try.
    Saw that it does require a baseURL to be set before it works but I'll try it out
    Ubuntu Server 24.04
    Intel i5 12500
    Intel Arc A380
    OS 500GB SSD
    Storage 6TB WD Red Pro
    « 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