I saw this post today on Reddit and was curious to see if views are similar here as they are there.

  1. What are the best benefits of self-hosting?
  2. What do you wish you would have known as a beginner starting out?
  3. What resources do you know of to help a non-computer-scientist/engineer get started in self-hosting?
  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    5 months ago

    That’s what everyone thinks for a while, and then they go back to Nginx.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 months ago

      Eh, my main reason for switching is that Caddy builds in LetsEncrypt. My Caddyfile is really simple, it’s just a reverse proxy that handles TLS and proxies regular HTTP to my services. I don’t have it serving any files or really knowing anything about the services. Here’s my setup:

      1. HAProxy - directs subdomains to devices (in VPN) based on SNI
      2. Caddy - manages TLS and LetsEncrypt and communicates w/ services over HTTP
      3. Nginx - serves files for things like NextCloud, if needed (most services have their own HTTP server)

      Each of these are separate Docker containers, which makes it really easy to manage and diagnose problems. The syntax for Nginx is more complex for 1&2, and the performance benefit of managing it all in one service just isn’t relevant for a self-hosted system, so I use this layered approach that makes each level as simple as possible.

    • keyez@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      I went from NGinx to HAProxy for 5 years, now on Caddy for 2 and loving it. So much simpler and efficient.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      I’m currently in the process of separating the certificate renewal service from the reverse proxy completely.

      But if you’re just starting out Nginx Proxy Manager makes it so easy.

      • ahal@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 months ago

        Out of curiosity, what’s the benefit of splitting those?

        • lemmyvore@feddit.nl
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          5 months ago

          It lets you change reverse proxy or run a website with TLS completely independently of the certbot. The certbot deals with obtaining certs and leaves them in a dir, and the proxies or webservers just take them from that dir. If the proxy container breaks the certbot still does its thing etc.

          It also makes it easier to do stuff like run different proxies in paralel for different things, chain proxies (for instance if you need to use a VPS because you can’t forward ports) and so on.

          But it’s all for advanced setups, for basic stuff I’d still go with NPM.

          • ahal@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            5 months ago

            Cool makes sense, thanks for the reply! And yeah, I don’t think I’m quite there yet.