• 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 SOLVED: Jellyfin & Caddy not working

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin & Caddy not working

    Trying to set up Jellyfin with caddy reverse proxy but I'm stumped.
    Ghostly_Ghost
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Aug
    Reputation: 0
    Country:United Kingdom
    #1
    2025-03-11, 03:53 PM (This post was last modified: 2025-03-11, 06:13 PM by Ghostly_Ghost. Edited 3 times in total.)
    So I have followed the instructions in this guide (https://forum.jellyfin.org/t-access-your...with-caddy) to try to get Caddy working with my Jellyfin, but it's defeating me Slightly-frowning-face .

    Current set up - Jellyfin 10.10.6 is installed on a Fujitsu Esprimo 556 running Ubuntu Mate.  Not using docker for JF.  I installed caddy and before I edited the caddyfile when I entered jellyfin.mydomain.net I got a page saying caddy was installed and working.  I altered the caddyfile and it's all gone pear-shaped and I'm tearing my hair out  Weary-face Weary-face

    Here's the caddyfile contents:

    Code:
    # The Caddyfile is an easy way to configure your Caddy web server.
    #
    # Unless the file starts with a global options block, the first
    # uncommented line is always the address of your site.
    #
    # To use your own domain name (with automatic HTTPS), first make
    # sure your domain's A/AAAA DNS records are properly pointed to
    # this machine's public IP, then replace ":80" below with your
    # domain name.

    jellyfin.mydomain.net {
    reverse_proxy 127.0.0.1:8096
    }

    # Set this path to your site's directory.
    #root * /usr/share/caddy

    # Enable the static file server.
    #file_server

    # Another common task is to set up a reverse proxy:
    # reverse_proxy localhost:8080

    # Or serve a PHP site through php-fpm:
    # php_fastcgi localhost:9000
    }

    # Refer to the Caddy docs for more information:
    # https://caddyserver.com/docs/caddyfile

    When I try to access jellyfin.domain.tld I get this (screenshot from firefox)

    Please help before I go around the twist!
    Go to solution
    M0RPH3US
    Offline

    Member

    Posts: 89
    Threads: 5
    Joined: 2023 Jun
    Reputation: 6
    #2
    2025-03-11, 03:59 PM (This post was last modified: 2025-03-11, 06:44 PM by M0RPH3US. Edited 2 times in total.)
    (2025-03-11, 03:53 PM)Ghostly_Ghost Wrote: So I have followed the instructions in this guide (https://forum.jellyfin.org/t-access-your...with-caddy) to try to get Caddy working with my Jellyfin, but it's defeating me Slightly-frowning-face .

    Current set up - Jellyfin 10.10.6 is installed on a Fujitsu Esprimo 556 running Ubuntu Mate.  Not using docker for JF.  I installed caddy and before I edited the caddyfile when I entered jellyfin.mydomain.net I got a page saying caddy was installed and working.  I altered the caddyfile and it's all gone pear-shaped and I'm tearing my hair out  Weary-face Weary-face

    Here's the caddyfile contents:

    Code:
    # The Caddyfile is an easy way to configure your Caddy web server.
    #
    # Unless the file starts with a global options block, the first
    # uncommented line is always the address of your site.
    #
    # To use your own domain name (with automatic HTTPS), first make
    # sure your domain's A/AAAA DNS records are properly pointed to
    # this machine's public IP, then replace ":80" below with your
    # domain name.

    Censored {
    reverse_proxy 127.0.0.1:8096
    }

    # Set this path to your site's directory.
    #root * /usr/share/caddy

    # Enable the static file server.
    #file_server

    # Another common task is to set up a reverse proxy:
    # reverse_proxy localhost:8080

    # Or serve a PHP site through php-fpm:
    # php_fastcgi localhost:9000
    }

    # Refer to the Caddy docs for more information:
    # https://caddyserver.com/docs/caddyfile

    When I try to access jellyfin.rexmax.net I get this (screenshot from firefox)

    Please help before I go around the twist!

    Not an answer but a word of caution. You should censor your domain name in both the caddy file and the screenshot.


    Also, there is a } hanging at the bottom of the caddy file
    gccalvin
    Offline

    Junior Member

    Posts: 17
    Threads: 3
    Joined: 2024 May
    Reputation: 1
    Country:United States
    #3
    2025-03-11, 04:05 PM
    (2025-03-11, 03:53 PM)Ghostly_Ghost Wrote: So I have followed the instructions in this guide (https://forum.jellyfin.org/t-access-your...with-caddy) to try to get Caddy working with my Jellyfin, but it's defeating me Slightly-frowning-face .

    Current set up - Jellyfin 10.10.6 is installed on a Fujitsu Esprimo 556 running Ubuntu Mate.  Not using docker for JF.  I installed caddy and before I edited the caddyfile when I entered jellyfin.mydomain.net I got a page saying caddy was installed and working.  I altered the caddyfile and it's all gone pear-shaped and I'm tearing my hair out  Weary-face Weary-face

    Here's the caddyfile contents:

    Code:
    # The Caddyfile is an easy way to configure your Caddy web server.
    #
    # Unless the file starts with a global options block, the first
    # uncommented line is always the address of your site.
    #
    # To use your own domain name (with automatic HTTPS), first make
    # sure your domain's A/AAAA DNS records are properly pointed to
    # this machine's public IP, then replace ":80" below with your
    # domain name.

    jellyfin.mydomain.net {
    reverse_proxy 127.0.0.1:8096
    }

    # Set this path to your site's directory.
    #root * /usr/share/caddy

    # Enable the static file server.
    #file_server

    # Another common task is to set up a reverse proxy:
    # reverse_proxy localhost:8080

    # Or serve a PHP site through php-fpm:
    # php_fastcgi localhost:9000
    }

    # Refer to the Caddy docs for more information:
    # https://caddyserver.com/docs/caddyfile

    When I try to access jellyfin.mydomain.net I get this (screenshot from firefox)

    Please help before I go around the twist!

    Is 443 open on your server firewall?

    You could try adding:
    Code:
    mydomain.net {
                    respond "Caddy is working!"
    }

    Then navigate to https://mydomain.net and you should see a page with "Caddy is working!"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-11, 05:17 PM
    Ensure that UFW is enabled and that port 443 is open. Ensure that your server has a static IP assignment from your router. Ensure that port 443 in your router is forwarded to the server. Ensure that your domain name is pointed to your public IP.
    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]
    Ghostly_Ghost
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Aug
    Reputation: 0
    Country:United Kingdom
    #5
    2025-03-11, 06:17 PM
    Thanks guys - rather oddly it's all started working and I have absolutely zero idea how!? I had double checked the router firewall (correct ports open); UFW was disabled on my server for testing purposes (my initial troubleshooting), all DNS stuff was correct.

    Was all this caused by that rogue } in the caddyfile?

    Cheers fellas, that has been driving me dotty all day!
    « 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