The title says it all. I am going to start self-hosting soon (still waiting for some hardware). Do you have any tips or advice to give me? I am planning on buying a domain name on Porkbun and start hosting
Document everything. Found a useful link that helped you configure something? Copy the link. Finally got your proxy working right? Save the config. Even just make notes of how you set things up.
Refine and build you notes along with your knowledge.
Eventually, consider keeping all your config files in a self-hosted repository like Gitea.
Oh, and when stuff breaks it’s probably DNS.
How do you organize your notes? I have text files in a folder and was looking for something better.
- Can give NixOS a try if you want to make things extra hard and get more satisfaction from finishing. The biggest advantage is most of your OS & services config will be in a file, so there’s no need to remember a thousand knobs to tune the experience just the way you want - a text file in a git repo will be all your config.
- I’d recommend Namecheap over porkbun. I found porkbun has less features. I specifically needed to wildcard forward email, which works well on namecheap.
- If you’re from Africa, India or some other country where $10 / year is a lot I recommend a 111 class B domain https://gen.xyz/1111b for $1 / year.
- Do you have static IPv4 or globally routable public IPv6 address assigned to your device? I’m ipv6 only selfhoster, and I use inadyn and afraid
- Can use wireguard and then later open ssh once you feel more comfortable.
I think that I will stick with ubuntu server for now, I run Artix on my main pc and dont feel like trying out NixOS yet… I heard bad bad things about Namecheap. Dynamicly allocated IPV4 but I never saw it change and I am plannig to monitor its changes to redirect my domain name to the right ip if it ever changes. I am already familiar with ssh thx. Thx for the help!
Caddy is a very simple reverse proxy which handles the https redirect by default, other proxies are http by default and you have to manually configure the redirect. Also caddy automatically handles the TLS certificate for HTTPS with http challenge by default (need port 80 open) or with DNS challenge (you need to build caddy with your DNS module and type the API key)
Thx! I heard about Nginx before, should I consider using Caddy instaed?
nginx is fine, lemmy uses it inside of its docker images too. I don’t find it’s config scary(template lemmy internal nginx config)