• 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 Unable to setup trusted proxies

     
    • 0 Vote(s) - 0 Average

    Unable to setup trusted proxies

    After 10.10.7 update, I cannot see the device IP anymore routed through caddy
    leonida92
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    #1
    2025-04-08, 01:27 PM (This post was last modified: 2025-04-08, 01:30 PM by leonida92. Edited 1 time in total.)
    Code:
    *.example.com {
    tls {
    dns cloudflare <API>
    }

    @jellyfin host jellyfin.example.com
    handle @jellyfin {
    reverse_proxy 192.168.1.5:8096
    }

    This is my caddy configuration for jellyfin using cloudflaredns module. My caddy LXC IP is 192.168.1.20. When I enter this IP in trusted proxies, Jellyfin shows only the caddy IP for every device connected through it. I don't know where to start to troubleshoot this issue.

    It was working fine before the update without specifying the trusted proxies.

    Any help on where should I get started?
    Maybe I should mention that I have configured adguardhome dns as the DNS for tailscale which redirects to the caddy ip. I only access my services outside of my local network via tailscale. The local subnet is advertised via tailscale.

    Both caddy and Jellyfin are running as independent LXC on proxmox.

    Thanks in advance.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-08, 02:42 PM
    IIRC, Caddy should be using X-Forwarded-For and X-Real-IP headers when using reverse_proxy. Both of which are required for the appropriate logging in Jellyfin when using a reverse proxy.

    Unless you've disabled them somewhere else in your config.
    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]
    Duvel
    Offline

    Member

    Posts: 69
    Threads: 9
    Joined: 2023 Jul
    Reputation: 3
    Country:Belgium
    #3
    2025-04-08, 03:07 PM
    I confirm that everything works fine with Caddy by default a slong as you properly define your caddy server's LAN IP in jellyfin trusted proxies.

    What does this mean ??
    Quote:Jellyfin shows only the caddy IP for every device connected through it.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-04-08, 03:22 PM
    (2025-04-08, 03:07 PM)Duvel Wrote: What does this mean ??
    Quote:Jellyfin shows only the caddy IP for every device connected through it.

    All the client activity is being reported as originating from the reverse proxy's IP instead of the client's actual IP.  Which shouldn't be the case as long as the IP set for known proxies is correct and that the proxy is using the two headers I mentioned.
    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]
    leonida92
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    #5
    2025-04-09, 08:23 AM
    (2025-04-08, 02:42 PM)TheDreadPirate Wrote: IIRC, Caddy should be using X-Forwarded-For and X-Real-IP headers when using reverse_proxy.  Both of which are required for the appropriate logging in Jellyfin when using a reverse proxy.

    Unless you've disabled them somewhere else in your config.

    I didn't disable them anywhere. I also tried adding them manually to my jellyfin caddy config, got a message saying that it's not necessary because caddy uses them by default, and still the same.
    leonida92
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    #6
    2025-04-09, 08:39 AM
    (2025-04-08, 03:07 PM)Duvel Wrote: I confirm that everything works fine with Caddy by default a slong as you properly define your caddy server's LAN IP in jellyfin trusted proxies.

    Do you have tailscale setup in your caddy server? Are you using any Caddy module? Is caddy running as docker or bare metal?
    pxr5
    Offline

    Member

    Posts: 52
    Threads: 3
    Joined: 2024 Jan
    Reputation: 3
    Country:United Kingdom
    #7
    2025-04-09, 05:20 PM
    I have 2 instances of Jellyfin running. One, bare metal on a Win11 Pro MiniPC and the other in docker on a Synology NAS. Both are behind a reverse proxy running directly on a Raspberry Pi. The Caddyfile contains the same commands for each Jellyfin server. I've set the trusted proxies on both instances of Jellyfin to 192.168.1.100/24 - which is the IP address of the Pi running Caddy. Everything works OK and both instances reports the correct IP address of the remote connection and not of the Pi running Caddy.

    I looked at some information on Caddy and it seems that the headers are forwarded by default so my simple Caddy file appears to be fine without any extra forward headers.

    It's important to restart the Jellyfin server for this to kick in properly as without a reboot the remote connections will incorrectly report the ip of the caddy proxy.
    Jellyfin1 - 10.10.3 (Docker) Synology NAS (transcoding off)
    Jellyfin2 - 10.10.3 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
    Storage - x3 Synology NAS (22TB)
    Reverse Proxy - Caddy v2 running on a Pi3b+
    « 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