this post was submitted on 15 Jul 2023
10 points (91.7% liked)

Self Hosted - Self-hosting your services.

11447 readers
29 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

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
all 11 comments
sorted by: hot top controversial new old
[–] dleewee@beehaw.org 6 points 1 year ago (1 children)

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@lemmy.ml 1 points 1 year ago

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

[–] pe1uca@lemmy.pe1uca.dev 5 points 1 year ago (1 children)

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@lemmy.ml 1 points 1 year ago (2 children)

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

[–] pe1uca@lemmy.pe1uca.dev 2 points 1 year ago (1 children)

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.

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)

[–] fraichu@lemmy.ml 4 points 1 year ago (1 children)
  • 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.
[–] h3ndrik@feddit.de 1 points 1 year ago (1 children)

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@lemmy.ml 1 points 1 year ago

I was going to use docker containers for everything using Portainer