this post was submitted on 29 Sep 2026
56 points (98.3% liked)

Selfhosted

62398 readers
353 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I've been wanting to get into self hosting for a long time and messed about a bit with setting up a nextcloud. But while I am reasonably well versed in linux and programming all things to do with the internet are quite confusing and mostly after reading blogposts and the like I am feel like I am missing so much knowldedge. From why people use traefik, how and why to use docker containers, what settings to change on the router, how to connect and setup the domain, and probably most importantly how to do this safely. Is there a good book or site that explains these more basic things?

you are viewing a single comment's thread
view the rest of the comments
[–] nykula@piefed.social 7 points 16 hours ago (1 children)

To your specific questions:

why people use traefik

Reverse proxies let you serve multiple apps from one server, encrypt your traffic and automate updates of encryption certificates. I use Apache (virtual hosts, mod_md) for this.

how and why to use docker containers

Modern web apps have many constantly shifting dependencies and don't work closely with distributions on packaging them, so they have to be updated separately from the base system. They might also need different versions of these dependencies, and multiple instances of one dependency (e.g. database). Containers are one way to achieve that, and also ease backups, monitoring of individual apps, and installing an application in exact same way on development and testing machines.

what settings to change on the router

To expose ports 22 (ssh), 80 (http) and 443 (https) to world, forward them to your server.

how to connect and setup the domain

In the DNS settings for your domain, point "A" record to your home IP. That's if you rent a static IP. If you don't, things will be more complicated, research on your own.

how to do this safely

Bare minimum: set up daily backups of container volumes and reverse proxy configuration, same for updates of base system and containers, and turn off SSH password login in favor of keys. Test that a backup can be successfully restored in a virtual machine at least once a month.

[–] non_burglar@lemmy.world 6 points 14 hours ago (1 children)

Op specifically asked for resources for learning and not sparse answers from users.

research on your own

Come on, man. Did you even read the post.

[–] nykula@piefed.social 1 points 10 hours ago

Where does OP say that they only want resources and no answers at all? Also you sadly misquote me by stripping context, I replied that there's a simple solution (and how specifically to look for it) to one of their questions if one condition if satisfied, and that the problem doesn't have an easy answer otherwise, therefore needing more research. I went out of my way to give OP brief answers and more specific questions for research, like I do for my students, and you make it look like I just wrote RTFM.