• 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 General Questions Did Caddy change something? Can't access server remotely.

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Did Caddy change something? Can't access server remotely.

    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #1
    2024-08-28, 11:05 PM
    So, here is my setup:

    I own a domain name. I have the A record pointing to a VPS public IP. From there, I have a Caddyfile that points to my home network's public IP. This always worked just fine on JF but now it isn't. On my domain name, I now get this: https://i.imgur.com/mhN8Z2O.png

    It admittedly has been months since I tried to access remotely, and that's how I only just noticed it randomly stopped working. I am puzzled on how to fix this. I have quadruple-checked everything. My DNS record 100% points to the VPS' public IP. I have a Caddyfile at /home on the VPS and then one at /etc/caddy/Caddyfile. The one at /home is simply:
    Code:
    jellyfin.MY_DOMAIN_NAME.com

    reverse_proxy HOME_NETWORK_PUBLIC_IP:8096



    And the one at /etc is:
    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.MY_DOMAIN_NAME.com {
    # 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

    Any help/ideas?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-28, 11:31 PM
    Is Jellyfin running? Did your home IP change?
    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]
    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #3
    2024-08-29, 12:52 AM
    (2024-08-28, 11:31 PM)TheDreadPirate Wrote: Is Jellyfin running?  Did your home IP change?

    Yes, it is running. No, IP is the same.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-08-29, 01:09 AM
    So how does the caddy file in your home directory get used by Caddy? I don't see any reference to it in /etc/caddy/caddyfile.
    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]
    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #5
    2024-08-29, 01:30 AM
    (2024-08-29, 01:09 AM)TheDreadPirate Wrote: So how does the caddy file in your home directory get used by Caddy?  I don't see any reference to it in /etc/caddy/caddyfile.

    I really don't remember - it just always worked. What should I do?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-08-29, 02:21 AM
    Why have two caddy files anyway? Put the contents of the caddy file in your home directory in the caddyfile in /etc/caddy.
    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]
    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #7
    2024-08-29, 11:45 PM (This post was last modified: 2024-08-29, 11:49 PM by 4r5hw45twh. Edited 2 times in total.)
    (2024-08-29, 02:21 AM)TheDreadPirate Wrote: Why have two caddy files anyway?  Put the contents of the caddy file in your home directory in the caddyfile in /etc/caddy.

    So, copy-and-paste the contents of /home into /etc and then I can delete the /home one? Because I just did that when I reloaded Caddy then refreshed my domain URL, I am getting a blank page instead of that Caddy welcome page now.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-08-29, 11:55 PM
    Did you replace all of the contents of the one in /etc/caddy? Or just put it at the bottom.

    I just noticed this bit in the original version you posted (trimmed all the comments).

    Code:
    jellyfin.MY_DOMAIN_NAME.com {
    # Set this path to your site's directory.
    root * /usr/share/caddy
    file_server
    }
    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]
    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #9
    2024-08-29, 11:58 PM
    (2024-08-29, 11:55 PM)TheDreadPirate Wrote: Did you replace all of the contents of the one in /etc/caddy?  Or just put it at the bottom.

    I just noticed this bit in the original version you posted (trimmed all the comments).

    Code:
    jellyfin.MY_DOMAIN_NAME.com {
    # Set this path to your site's directory.
    root * /usr/share/caddy
    file_server
    }

    I just replaced all the contents. But tbh, I don't even know what all the stuff was in the /etc Caddyfile. Because I don't use a file manager or anything for my domain. I use it as my own e-mail domain, so the site doesn't actually have any content or anything like that - if you visit the direct base URL, it doesn't load anything. So, should I add what you just quoted back to the /etc file?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-08-30, 12:12 AM (This post was last modified: 2024-08-30, 12:13 AM by TheDreadPirate. Edited 1 time in total.)
    Your caddyfile literally only needs two lines. Which you already had right.

    Code:
    jellyfin.MY_DOMAIN_NAME.com

    reverse_proxy HOME_NETWORK_PUBLIC_IP:8096

    If you made any changes you do need to restart Caddy if you haven't done that already.

    https://jellyfin.org/docs/general/networ...#caddyfile

    https://caddyserver.com/docs/conventions#file-locations
    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]
    Pages (2): 1 2 Next »

    « 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