• 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 Reverse proxy using Caddy questions

     
    • 0 Vote(s) - 0 Average

    Reverse proxy using Caddy questions

    MarcosAquino
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #1
    2024-03-24, 12:16 PM
    Hi all,

    I am running Emby on my Mac M1 with caddy working perfectly for reverse proxy.

    I installed Jellyfin on the same computer. I changed ports of emby to 8097 and kept Jellyfin's ports to default. 

    I re-run caddy so I can access it using a hostname I purchased from noip and it still works fine. 

    My question is, is it possible for caddy to do reverse proxy for both emby and jellyfin at the same time, using two different website from noip? I am just confused how it will work as I believe when I access the website provided by no-ip, it needed ports 443 and 80 to connect to the computer and then caddy forwards it to Emby's current port of 8097. 
    I have tried to also configure caddy to do the same for Jellyfin using different hostname and port but it did not work. It seems like it can only do one? 

    If that is the case, any idea how I can do reverse proxy for Jellyfin? Sorry if the question may sound stupid Slightly-frowning-face
    conor
    Offline

    Junior Member

    Posts: 22
    Threads: 4
    Joined: 2023 Jun
    Reputation: 0
    #2
    2024-03-24, 12:59 PM
    Use a subdomain for Jellyfin, as in jellyfin.example.com
    MarcosAquino
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #3
    2024-03-24, 05:19 PM
    I am sorry, what do you mean?
    MarcosAquino
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #4
    2024-03-24, 06:36 PM
    I created a caddyfile with these lines

    jellyfin.domain.com {
    reverse_proxy 127.0.0.1:8097
    }

    emby.domain.com {
    reverse_proxy 127.0.0.1:8096
    }

    Only emby loads but not jellyfin. Any idea?
    I used nslookup and both hostnames are working so it looks like it is with caddy when it does reverse proxy in the computer?
    pxr5
    Offline

    Member

    Posts: 51
    Threads: 3
    Joined: 2024 Jan
    Reputation: 3
    Country:United Kingdom
    #5
    2024-03-24, 10:10 PM
    Not a stupid question at all. However, only the device that caddy runs on needs the ports 80 and 443 forwarding. Caddy itself handles everything else. Your caddyfile looks Ok, but try using the direct ip rather than 127.0.0.1. So for example 192.168.1.xx.

    You said "I changed ports of Emby to 8097" but your caddy file has Jellyfin on 8097 and Emby on 8096.

    I found sometimes when changing ports often that my router would get a bit messed up that only a reboot of the router would fix it.

    I've certainly had 2 servers running on one device before with different ports that worked Ok with Caddy, one was Jellyfin the other Airsonic.
    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