Hello Self Hosters! I am new-ish… got Jellyfin working great with tailscale remote access! I love it! I keep getting deeper into this stuff and geeking out… really excited to add my next service: Self-Hosted Nextcloud.

Would someone kindly walk me through setting up reverse proxy to my stuff with Caddy? I really just want HTTPS support, as my media files are one thing, but hosting all my personal info/docs on NextCloud is quite another thing to potentially expose…I want to make sure I harden properly, and HTTPS is clearly a part of that, even if I’m running a tailscale VPN. I have done my best following the docs/tutorial so far, but I’ve hit the wall with this “start” page… Here’s what I’ve got:

  • pointed my domain “A” DNS to my website as a sub-domain… so my address in caddyfile is “sub.mydomain.com
  • I’ve installed caddy directly on my unbuntu server, but I admin my Jellyfin (and eventually Nextcloud) with Docker via CasaOS interface… is this a problem? Do I need to run Caddy in docker too?
  • I’ve followed the instructions on this start page and I still only get the startpage at “sub.mydomain.com
  • my tailnet server IP address is what I’m using for the reverse proxy… that’s correct, yes?
  • So many things/guides just say “reverse-proxy --to …” but when I do that, I get an error saying port 80 is ‘already in use’ I have combed my configs & devices on my router…nothing is using port 80 that I can see. Ports 80 and 443 ARE forwarded/open, before you ask! -My next big step in this journey is piHole, so if this will interfere/interact with that in some important way, I appreciate the heads-up mightily!

Thank you in advance, I appreciate it!

EDIT! - CaddyOS uses 80 as default gateway, turns out! So, switched that… now Caddy is starting properly… STILL can’t get the ‘welcome’ page to go away… still a problem with my caddyfile I suppose.

  • gibdos@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    16 hours ago

    Okey, so if you skip the whole DNS and use http://PUBLICIP:PORT for any of your docker services, does your browser reach them?

    You said you have Caddy on bare metal Ubuntu and your services in CasaOS. Sadly I’ve never used that, but is that a VM on your Ubuntu Server and inside that run your docker containers? If so, maybe that’s what’s stopping Caddy from reaching your containers?! Just guessing tbh.

    • Profligate_parasite@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      Yeah, had to go touch grass after having this drive me crazy for a second day. The reverse proxy is “working” according to caddy… and the DNS is all pointed in the right spots but it just wont go. The CasaOS is the only think I can think of too. CasaOS is just a frontend GUI for a headless server… easy to manage/move media files, etc. INstalls docker containers with a click. I will have to try doing Caddy as a docker and see what happens.

      To answer your question, if I put in the publicip and port, I get my Jellyfin, it’s reaching them, and working just fine. Just can’t get my DNS pointers to be recognized/used by Caddy. I’ve tried two different domains at this point. Whatever. Infuriating, but whatever. My shit still works. Thanks for trying. I tried to use the Caddy forum but they literally make you format/type your whole issue in predesignated HTML and shit… I typed the whole thing out but I don’t know shit about HTML so the ‘issue’ showed up as blank. Fuck this. I can live without.

      • gibdos@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 hours ago

        One last thing. I assume you checked if your DNS changes got propagated? I tend to use DNS Checker. And even if the changes are propagated, it can sometimes still not work because of DNS cache in

        • your browser
        • your pc
        • your router
        • your custom DNS provider

        So assuming that you checked the DNS propagation and it was propagated enough, I’d also

        • clean all DNS caches from browser, pc and router
        • try different, large DNS provider (Google, Cloudflare, etc.)
        • try the domain in a different browser / private window
        • try it on my phone over mobile network and not wifi

        I recently had the problem that the custom secure DNS I use on Firefox took almost a day to update their cache, while every other provider had my changes in a couple of minutes at most.