This is my first post on my new site, I hope someone finds it helpful!

    • h0bbl3s@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 months ago

      I know I know. If you wanna install certbot another way feel free. Share it with me I’m sure it’ll take up less space. I only did it that way because it’s the certbot official©®™ instructions. That and I had issues with the other method I tried.

  • moonleay@feddit.org
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    4 months ago

    Hey,

    cool seeing another bearblog in the wild (I also use Hugo + Bear for my blog).

    Quick question: Why do you deploy the Hugo dev server and don’t build your page to static HTML?

    • h0bbl3s@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      4 months ago

      Awesome it is good to see the bearblog getting some love. Just to keep it short mostly. I was debating adding another article continuing this one using nginx for that part. I could add a section to this one though. Or would you use something other than nginx, I’m open to suggestions. I checked yours out, it’s a bit snappier than mine :) . What are you running?

      • moonleay@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        4 months ago

        I use CI to compile the page and add it to nginx, which I then build into a docker container. Once it’s finished, I deploy it to my server and it gets served by traefik.

        That’s another thing I was curious about. Is there a reason why you didn’t use docker?

        You mentioned in another comment, that you used snap, because it is used in the official certbot instructions. Did you intend this to be 100% faithful to official docs?

        • h0bbl3s@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          4 months ago

          Nice. I might have to clone that setup for fun. What do you use for CI? I’ve got jenkins running but I’ve been wanting to play with gitlab CI/CD too.

          I do a lot of my dev work in docker containers, simply so I’m in a clean environment. Doesn’t hurt in ease of backup either. No particular reason not to use docker, I also wanted to keep it kind of brief and simple. The guide I originally read that inspired me had a lot of things that were very outdated, and as I worked through getting it working on debian 12 I generally stuck with the source providers instructions when things weren’t already packaged for dpkg, or alternatives were more complex.

          I am currently mulling around doing extensions on this guide and adding links at the bottom, or just extending this one a bit. Also just thinking about writing a guide for other stuff too. I’ve been helping people on discord and irc a bit recently and some of what I know might be useful to someone.

          I don’t know everything by any means far from it, but I’ve been around since my first beOS and slackware installs a long time ago and I’ve picked up a lot. I worked developing and deploying pfsense images for a company years ago and have just had a lot of random experience in linux and bsds over the years.

  • matcha_addict@lemy.lol
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    Is it just as secure doing this (with crowdsec) vs hosting on a rented server from a cloud provider?

    • h0bbl3s@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      My site is on a rented server at digital ocean. Some providers do more or less to protect you themselves though. I don’t think digital ocean does much monitoring or protecting, I’ve had servers on there compromised in the past that would have been caught by my current setup. It can’t hurt in any case.

      I also run crowdsec on my home setup but I don’t have any open ports at home and never get alerts. I had suricata running and plugged into crowdsec as well so it would handle blocking for both, but suricata never got to get any action with crowdsec blocking malicious activity, so I disabled it to save resources.