Hey everyone. This is probably a super noob question, but I’m very much just an amateur when it comes to self-hosting.

I host several services that I access locally through 192.whatever:####, and when I occasionally need remote access, I use Tailscale and access through 100.whatever: ####. The duplicate bookmarks is mildly annoying though.

Can I just buy a personal domain, and have all my services be coolname.com:#### for both local and Tailscale access? Is that as simple a process as I want it to be?

Edit: I appreciate all the comments and I’ll probably just use Tailacale’s MagicDNS for simplicity, but one or my (unwritten, my bad) goals was to have one URL that works locally and remotely, regardless of Tailscale. I don’t leave Tailscale constantly connected because it overheats my phone (which already has terrible battery life).

  • fuckoffplzkthx@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 hours ago

    Not trying to sound like an ass, promise. Have you declared those routes in Tailscale? There are two methods of doing this. One uses pathing, with --set-path, and not everything supports serving on a path without changing the base URI of the application you’re trying to reach. It looks like you’re sticking to ports, but I haven’t see anyone ask how you’re declaring this with the tailscale serve command.

    And did you add a funnel, or just tailscale serve?

    tailscale funnel --bg http://localhost:1234/

    This is different, and I believe they are mutually exclusive.

    The funnel would show as https://hostname.tailnet-name.ts.net/ to anyone online without needing tailscale, and that sounds like what you’re after as far as deduplicating bookmarks. If I’m not mistaken this only supports 443/8443/10000 ports, however. It’s also hanging free in the breeze for anyone to get to if they know the URL.

    Again, sorry if this is asking redundant questions or anything.