I recently became interessted in learning about static site generators. So I decided to start a little 11ty blog, in which I teach people, who are new to self-hosting, how to securely set up their own server with Ubuntu and Docker.

For now, I’ve got my Beginners Guide series as well as a more detailed introduction to SSH and its features. I plan to eventually write down all I’ve learned about self-hosting in the past 20 years.

Hope it ends up being helpful for some of you.

  • mlg
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 小时前

    Ubuntu and Docker.

    Really? Netplan alone disqualifies Ubuntu as a “friendly stable starter distro”, and I can guarantee you that your guide will somehow become outdated with a single new Ubuntu release, or some poor soul who accidentally selected an LTS release.

    Docker doesn’t matter as much, but there’s a reason beyond just FOSS licensing why podman exists.

    Would highly recommend Debian instead.

    I started on Ubuntu similar to this many years ago and both the server and desktop experience was not fun at all.

    • Matt The Horwood@lemmy.horwood.cloud
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 分钟前

      That makes me very odd, I started with mandrake. Got very frustrated with the hand holding and moved to Debian, I’m not touching Ubuntu with a 10 foot clown pole.

      Who in their right mind uses yaml for network config?

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      52 分钟前

      I think you are conflating desktop Ubuntu with Ubuntu Server. On a server, you absolutly want a stable, long supported LTS version.

      I’ve been hosting on Ubuntu Server for over 10 years now, and at no point were any packages required to keep it up to date and running outdated.

    • InFerNo@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      60 分钟前

      As someone who manages a mail server, new debian releases have the same effect.

      If you want to avoid this, use a rolling release distro.

  • lando55@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 小时前

    I wrestled with whether or not I should be that guy, but self-hosting by definition generally means everything down to the bare metal, i.e. not a VPS.

    I can understand how the term could apply to the broader definition of running your own services on managed infrastructure, but it seems odd not to make that distinction in a beginners guide.

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 小时前

      I see your point. But to me, self-hosting just means being responsible for the server and services and not necessarily having my own hardware server at home. And just calling it hosting is too broad a definition for me. And at the end of the day, the guide works just as well for your own hardware or a VM, as it does for a VPS.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 小时前

      Making the term self hosting exclusive to running stuff at home feels unnecessarily elitist. Not everyone has the space, bandwidth or family approval to run stuff at home.
      You can have the term homelab if you want

      • Two9A
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 小时前

        Right, I self-host email and have done for ten years or more, but I don’t do it out of a server at home. Does my Postfix not count as selfhosting any more?

      • lando55@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        58 分钟前

        I’m ambivalent as to who uses the term and how, but a deviation from the general consensus of its definition might cause confusion for newcomers to the field who can’t make the distinction. That said, I enjoyed OPs post and appreciate the time they put into it.

        Homelab on the other hand is not synonymous with self-hosted infrastructure and services, as its intended use is not for production workloads.

    • sem@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      7 小时前

      Why is that, if I may ask? I’ve used both for years and personally I find Ubuntu has fewer footguns for a new user, and an easisr upgrade process.

      • nupo@quokk.au
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        6 小时前

        I prefer Debian’s community-driven governance model, the higher degree of freedom over the system and lack of preinstalled software that I neither need nor want, and the quiet stability that Debian offers.

        I also have just not liked Ubuntu’s decisions over the years. Little things that piled up like the Unity stuff a few years back (or I guess almost a decade at this point), the forced inclusion of snapd, that time they said they wouldn’t offer 32-bit libraries, the little message advertising Ubuntu Pro in the shell.

        I’ve always felt like Debian is happy to just get out of the way and let you use it how you want to use it. That control is what I look for in a distro. What you call “footguns” are to me just more options for control.

      • non_burglar
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 小时前

        Debian’s footguns are better documented and are generally there for good reason. Ubuntu’s footguns are there because “fuck the user”.

      • dalekcaan@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        7 小时前

        Yeah, I don’t know anything about self-hosting, but I’ve recently been working on switching from Windows 10 to Linux and I’ve been really enjoying Kubuntu so far.

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      4 小时前

      Whille I agree, when it comes to the Ubuntu Desktop, their Server OS has been a stable, reliable and well supported system for me.

  • dis_honestfamiliar@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 小时前

    This 11ty sounds like a nice off the shelf solution to getting a blog started, which I want to do, but how to allow comments? I guess I’m asking what’s everyone around here solution for comments

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 小时前

      Can’t really help you there, since comments were never a consideration for me. They would add an unneeded amount of moderation, and potential threat, to my blog.

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 小时前

      Yeah, took me a while to get the hang with Nunjucks, which I had never heard of or used before. But once I got it all properly set up, it was super simple and easy. I’ll definetly write a guide to it too, eventually.

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      10 小时前

      Thanks, glad you liked it.

      Yeah, I know that the images are borked. But it’s pretty late here and I was too lazy to fix it. I’ll fix it tomorrow.

      • ki9@lemmy.gf4.pw
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 小时前

        You should check out the official 11ty images plugin if you haven’t already. Itll generate multiple sizes for your output. Its the best feature imo.

        • gibdosOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 小时前

          Took me an embarrassing amount of time to realize my mistake. I forgot to actually use the npx @11ty/eleventy build command instead of always relying on npx @11ty/eleventy --serve. Now the images are properly linked and transformed / optimized.

      • gingersaffronapricat
        link
        fedilink
        English
        arrow-up
        7
        ·
        10 小时前

        I get that. Sometimes there are things for another day. I hope you get a good nights rest

  • foggy
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 小时前

    For getting your stuff available over the internet, y I recommend a secure tunnel with wire guard between your vps and servers running the services.

    Make your vps an authentication portal using stuff like Authelia and Fail2ban.

    If you’re really needing out, get ELK stood up for free and get agents on your containers/services to keep visibility into any potential… Anything

    • gibdosOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 小时前

      I’ve personally never found the need to do that. If you follow basic security guidelines and keep your server os and the docker service up-to-date, there really isn’t any real threat.

      Though I have heard of Authelia before and was interested in reading up on SSO, one of these days.