Hello All,

I am really new to selfhosting, trying to learn the basics. I have a raspi 5 with docker installed and a domain. My question is, as I collect all my knowledge from all over the internet, is there a selfhosting guide for dummies? IT would be cool to have some guidance at hand to rfer to when i do dumb shit.

Thanks

  • d00phy@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 days ago

    Also, I started with a pi, added a synology (a NAS is a game changer), and then moved almost all services off the synology to a Beelink S12 pro. Recently upgraded the S12 to 32GB of memory, and I have a 2tb ssd upgrade I have to do soon. All of this is over the past 2-years.

  • Encrypt-Keeper@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 days ago

    Unfortunately not as self hosting is really just an amalgamation of a number of different technologies, concepts, groups of best practices, and there are nine and a half viable ways to do any given thing you’ll want to do. For my day job I manage several public systems that serve millions of requests a day and even I can’t really give you a “One definitive way of doing things”, but I have my preferences.

    I think if you wanted a rough plan of what would be the most valuable things to learn in which order it would be

    1. Docker, especially persisting your storage and also how its network works. Use containerized services only on your local network at first to get a feel for things, and give yourself the ability to screw things ip without putting yourself in any danger.

    2. VPNs and how they work. You can start with a direct stupid simple VPN like WireGuard, or Tailscale if you want a mesh-VPN. This will allow you to reach your services remotely without having to worry too much about security and the micromanagement that can sometimes come with it.

    3. Reverse proxies for things you’d like to expose to the public. At this point you want to learn as well about things like server hardening, have a system in place to automate software updates etc. there’s a common misconception that using a reverse proxy is innately much safer than port forwarding directly to your services. It can help by obscuring your home IP, and if you pair it with a WAF of some kind that’ll help you with much of the chaff attacks that get tossed your way, but at the end of the day in both cases you’re exposing the web services on your local network to the internet at large, so you have to understand the risk and reward of doing this.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    6 days ago

    Don’t expose things to the internet with port forwards. Anything you want to do like that can be done with a reverse proxy or preferably a VPN.

    That is all.

    • WbrJr@lemmy.ml
      cake
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 days ago

      But no ports only regards the home network, right? The proxy Server has to have open ports, and the home Server that connects to the proxy (how ever that’s done) needs to receive the forwarded packages on its ports, no?

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        Yes. The proxy will have 80 and 443 forwarded from the router. Everything else gets proxied through your reverse so you can set basic auth on anything likely to be a security risk. Generally, you don’t want regular login pages exposed directly, they should be behind basic auth.

    • werefreeatlast@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 days ago

      It took me a while to learn that:

      Reverse proxy= your page lives in your basement but only your DNS knows. From outside everyone goes to “my page is cool.com

      VPN= LAN but in WAN…go to Starfucks and you can still get your files from your basement’s NAS

      I’m sure they got other meanings, but this frame helped me a bit. Hide your IP!

  • jasonlearst@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 days ago

    I learned about this book written by Adam who founded the SeaGL conference.

    https://selfhostbook.com/

    I’ve been self hosting for years and bought it to support him. I like the style of writing and how he explains the concepts.

  • d00phy@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 days ago

    Two sites that really helped me get the basics of docker compose were Marius hosting and Dr Frankenstein’s docker guides. Both are focused more on synology, but the docker stuff works anywhere.

    ETA: linuxserver.io is pretty handy, too.