• 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 DDNS with Caddy as a reverse proxy server

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    DDNS with Caddy as a reverse proxy server

    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #1
    2025-02-23, 07:09 PM
    Hi
    I have managed to get Caddy working as a reverse proxy server, and all working well so far.  I have a DDNS hostname via NO-IP.  From what I have read I need to set it up to work with the dynamic_dns plug-in.  

    AI Answer

    To set up DDNS (Dynamic DNS) with Caddy, you can use the built-in "dynamic_dns" module which automatically updates your DNS records with your current public IP address, making it particularly useful when your IP address changes frequently; essentially, you configure Caddy to periodically check your IP and update the DNS record with your provider if it changes.

    My current script is very simple like this

    mydomainname.hopto.org {
    encode gzip
        reverse_proxy localhost:8096
    }

    I have tried adding this to my script (with my own credentials)


    {
        dynamic_dns {
            provider noip {
                username "your_noip_username"
                password "your_noip_password"
                hostname "yourdomain.no-ip.info"
            }
            domains {
                "yourdomain.no-ip.info"
            }
        }
    }

    But I get this error

    Windows could not start the caddy service on local computer
    The service did not return an error.  This could be an internal Windows error or an internal service error.

    Can anyone tell me where I am going wrong
    Many thanks
    pxr5
    Offline

    Member

    Posts: 57
    Threads: 3
    Joined: 2024 Jan
    Reputation: 3
    Country:United Kingdom
    #2
    2025-02-24, 01:06 PM
    If you look at this thread and my last post, I struggled with this too. I was hoping Matt (the original OP of that thread) could come back and help me out. But I'm sorry to say I simply gave up using 'caddy-dynamicdns' and found another, much simpler, way - and that was to my Synology NAS to update the DNS entries. Of course there are many other ways to automatically update DDNS; it's just a matter of finding one that works for you.

    https://forum.jellyfin.org/t-access-your...with-caddy
    Jellyfin1 - 10.10.7 (Docker) Synology NAS (transcoding off)
    Jellyfin2 - 10.10.7 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
    Storage - x3 Synology NAS (22TB)
    Reverse Proxy - Caddy v2 running on a Pi3b+
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2025-02-24, 02:02 PM
    No-IP has their own IP address update tool that I recommend you use over having Caddy do it. The Caddy update function is better used with services that don't have separate tools for updating IPs. Like Cloudflare.

    Revert to your previous caddyfile and install No-IP's client.
    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]
    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #4
    2025-02-24, 03:03 PM
    Thankyou so much. I wish I had posted here earlier. I spend most of the day yesterday pulling my hair out lol
    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #5
    2025-02-24, 03:13 PM
    Another question while I am here.

    Is it possible to use DDNS hostnames rather than explicit IP addresses in the whitelist for allowed network connections within Jellyfin?

    I would like to create a whitelist for my families IP addresses, but if their IP address changes they would no longer be able to connect.

    I think I know the answer, just wondering if this is even technically possible

    Cheers
    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #6
    2025-02-24, 04:24 PM
    I am trying to make my server as secure as possible, so another option is limiting access to user accounts to specific devices. I created a test account and unchecked all devices, but I can still access it on my phone. Is that because I have used my phone to access my own account previously? Also if no devices are checked for a new user, is there any sort of notification and approval process for having access on a new device?

    Many thanks
    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #7
    2025-02-24, 06:11 PM
    Just tested with a web browser on another PC. If I try to log into the test account it refuses, as expected. If I then log into my account and log out, then try the test account again, it lets me log in. Is this expected behaviour, or a bug?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-02-25, 02:28 PM
    I am not sure if DDNS addresses get resolved in that field. Hypothetically, if it did resolve DDNS addresses, I'm not sure it would dynamically update the filter without requiring a restart of Jellyfin.

    Regarding the device access restrictions, from the setting's comment.

    Quote:This only applies to devices that can be uniquely identified and will not prevent browser access. Filtering user device access will prevent them from using new devices until they've been approved here.

    I'll experiment with it a bit later today and get back to you. I've never used the feature myself.
    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]
    Swindiff
    Offline

    Member

    Posts: 62
    Threads: 10
    Joined: 2023 Dec
    Reputation: 0
    Country:United Kingdom
    #9
    2025-02-25, 07:46 PM
    Many thanks again 😁
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2025-02-25, 09:46 PM
    Definitely seems like a bug. Search our git for an open ticket (I see a couple old tickets), if no open ticket exists you should submit a bug report.

    https://github.com/jellyfin/jellyfin/issues
    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