There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

[Question] Any advice to give to give? Starting to self-host soon

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

  • Adguard Home
  • Nextcloud
  • A lemmy instance
  • VaultWarden
  • Photoprism
  • A blog
  • A Matrix server
  • Serge
  • A MC server
  • Some services from the *Arr software suite with the help of LMDS
dleewee ,

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.

fraichu ,

How do you organize your notes? I have text files in a folder and was looking for something better.

fraichu ,
  • 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 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.
h3ndrik ,

Are you going to use something like YunoHost or use docker containers and write a few compose files and configure a reverse proxy yourself?

jvrava9 OP ,
@jvrava9@lemmy.ml avatar

I was going to use docker containers for everything using Portainer

pe1uca ,

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)

jvrava9 OP ,
@jvrava9@lemmy.ml avatar

Thx! I heard about Nginx before, should I consider using Caddy instaed?

pe1uca ,

I’ve always thought nginx configs were too complicated… But that’s because I’m not a sysadmin, so I have little to no point of reference.

The Caddyfile is a very simple file, and as mentioned, I don’t have to worry about configuring the https redirect or the ssl certificates (reading and obtaining/renewing them), which is more than enough for me.
I’ve only used it as a reverse proxy which also helps to my config being so simple.

I’ve read caddy has better performance, but there are posts saying otherwise too. So I’m not sure.

phoenix591 ,

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)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines