this post was submitted on 20 Jan 2024
824 points (95.7% liked)

Selfhosted

38707 readers
677 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 81 points 8 months ago* (last edited 8 months ago) (4 children)

The idea of "self-hosting" git is so incredibly weird to me. Somehow GitHub managed to convince everyone that Git requires some kind of backend service. Meanwhile, I just push private code to bare repositories on my NAS via SSH.

[–] [email protected] 30 points 8 months ago* (last edited 8 months ago) (1 children)

They didn't convince anyone of anything, they just have a great free-tier service, so people prefer using it than self-hosting something. You can also self-hosted Github if you want the features they offer, besides Git.

[–] [email protected] 30 points 8 months ago* (last edited 8 months ago) (1 children)

This post is about "self-hosting" a service, not using GitHub. That's what I'm responding to.

I'm not saying GitHub isn't valuable. I use it myself. And in any situation involving multiple collaborators I'd probably recommend that kind of tool--whether GitHub or some self-hosted option--for ease of user administration, familiar PR workflows, issue tracking, etc.

But if you're a solo developer storing your code locally with no intention to share or collaborate, and you don't want to use GitHub (as, again, is the case with this post) a self-hosted service adds a ton of complexity for only incremental value.

I suspect a ton of folks simply don't realize that you don't need anything more than ssh and git to push/pull remote git repositories because they largely cargo cult their way through source control.

[–] [email protected] 5 points 8 months ago (1 children)

Is running a docker container a lot of overhead?

Ernestly asking, since my opinion is skewed cause im use to running containers.

[–] [email protected] 6 points 8 months ago* (last edited 8 months ago) (4 children)

Absolutely. Every service you run, whether containerized or not, is software you have to upgrade, maintain, and back up. Containers don't magically alleviate the need for basic software/service maintenance.

load more comments (4 replies)
[–] [email protected] 26 points 8 months ago (3 children)

You're completely missing the point. Even Gitea (much simpler than GitHub, nevermind GitLab) is much more than a git backend. It's viewable in a browser, renders markdown, has integrated CI functionality, and so on.

Even for my meager self-host use-case, being able to view markdown docs in the browser is useful from time to time, even on my phone.

As for the things I use (a self-hosted) GitLab instance at work for... that doesn't even scratch the surface.

load more comments (3 replies)
[–] [email protected] 10 points 8 months ago (1 children)

Bare repos with multiple users are a bit of a hassle because of file permissions. It works, and works well, as long as you set things up right and have clear processes. But god help you if you don’t.

I find that with multiple users the safest way is to set up/use a service. Plus you get a lot of extra features like issue tracking and stuff.

[–] [email protected] 4 points 8 months ago* (last edited 8 months ago) (1 children)

Agreed, which is why you'll find in a subsequent comment I allow for the fact that in a multi-user scenario, a support service on top of Git makes real sense.

Given this post is joking about being ashamed of their code, I can only surmise that, like I'm betting most self-hosters, they're not dealing with a multi-user use case.

Well, that or they want to limit their shame to their close friends and/or colleagues...

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 55 points 8 months ago (3 children)

I love it when I check out am applicants’ GitHub and run into a bunch of repositories with mods for hentai games.

[–] [email protected] 42 points 8 months ago (1 children)

I mean.....are they good mods? Does the candidate have good code etiquette?

Honestly, the fact that a candidate would mod any game, let alone a hentai game, would be pluses in my book.

[–] [email protected] 45 points 8 months ago (1 children)

I definitely do not count it against them as long as they know how to human at the interview. I just review the code as I would any repo.

The only thing is that with regular projects I tend to go “I noticed on your GitHub you have project X that uses technology Y, etc etc”. With H projects I just go “do you have experience with Y” and let him choose how much he wants to share about the project. So far they remain vague on the non technical details and I let them leave with their dignity intact.

So, ranked, way ahead of candidates without visible projects, but slightly behind people with projects we can discuss in detail in front of the people from HR ;)

[–] [email protected] 18 points 8 months ago
[–] [email protected] 8 points 8 months ago

Men of culture

[–] [email protected] 8 points 8 months ago

Power move.

[–] [email protected] 47 points 8 months ago (2 children)

People who say “codes”

[–] [email protected] 41 points 8 months ago (1 children)

Thank you for letting me know. As you might guess English is not my first language. Always appreciate these inputs.

[–] [email protected] 19 points 8 months ago

lol, I have no idea why someone down voted you.

But yea, the plural of code in the context of programming scripts is just code, but if you were to talk about codes like a code to get into a door pin-pad, it has an "s" at the end for plural. To be honest, I'm sure there's plenty of native English speakers not in the tech world that would likely also call it "codes" when talking about programming.

[–] [email protected] 7 points 8 months ago (2 children)

From my experience this is a very Indian thing.

[–] [email protected] 5 points 8 months ago

Also heard it a lot from Chinese speakers.

load more comments (1 replies)
[–] [email protected] 31 points 8 months ago (1 children)
[–] [email protected] 8 points 8 months ago (1 children)

I was aware of forgejo back when I first started hosting Gitea. Didn't see much of a diff back then so I just went with arguably more popular option at that time.

About few months after it's mostly just because I'm too lazy of a person.

[–] [email protected] 8 points 8 months ago* (last edited 8 months ago) (1 children)

Forgejo is a fork of Gitea. As of now I don't think they have diverged much. So they're (still) about the same. It was mainly created because of the takeover of the domain and trademark by a for profit company. Not because of different functionality.

https://forgejo.org/compare/#why-was-forgejo-created

[–] [email protected] 4 points 8 months ago

Yes this is a great idea, this had happened to tons of different projects. Always stick with the foss option

[–] [email protected] 22 points 8 months ago (1 children)

I've got 3 tricks for ya:

  • backups
  • backups
  • backups
[–] [email protected] 13 points 8 months ago (1 children)

What are you saying? My gitea is my backup!

[–] [email protected] 18 points 8 months ago* (last edited 8 months ago) (1 children)

True pro gamers just use

/Project

/Project1

/Project_latest

/Project_final

/Project_final2

/Project_final_forrealthistime

[–] [email protected] 8 points 8 months ago (2 children)

Are you the hacker known as 4Chan? How else could you know my version naming convention?

Regardless, all will be forgiven if you can remind what folder and file actually contains the final version. So.. which is it?

[–] [email protected] 4 points 8 months ago* (last edited 8 months ago) (1 children)

You tried to get organized and moved it here. It says "alpha" and "test" but it's the real one, ready for production.

~/git/projects/Project_final3-alpha-0.1.1-test

[–] [email protected] 4 points 8 months ago

Imposter. That was a test. The real 4Chan would know that I use:

FileName.ACTUAL_REAL_LATEST_FINAL_PROD_VERSION

And it works everytime, about 70% of the time.

load more comments (1 replies)
[–] [email protected] 22 points 8 months ago (1 children)

I self host gitea because I don't want to pay Microsoft $160 a year.

[–] [email protected] 4 points 8 months ago (1 children)
[–] [email protected] 4 points 8 months ago (1 children)

For public foss projects only, afaik

[–] [email protected] 7 points 8 months ago (1 children)

I think it changed it after they were bought by Microsoft, you get infinite(?) private repos on a free account now.

[–] [email protected] 11 points 8 months ago (1 children)

So they can read your code and use it for copilot

[–] [email protected] 5 points 8 months ago

I'm just happy to be doing my part to make copilot worse.

Wanna talk about poisoning LLMs? Just assume the coffee in my repo is in any way good.

[–] [email protected] 17 points 8 months ago (3 children)

The trick is to switch to forgejo

[–] [email protected] 11 points 8 months ago (1 children)

Absolutely!

Running local, self hosted forgejo with a few runners.

Now my code is neatly checked with pre-commit and linters, build when new tags are pushed, renovate is scheduled every 24 hours to check for new releases of stuff etc.

Just a few containers and a happy user :-)

[–] [email protected] 3 points 8 months ago (2 children)

do you use forgejo-runner or another ci/cd image?

load more comments (2 replies)
load more comments (2 replies)
[–] [email protected] 9 points 8 months ago (2 children)

The license gives me the ick, so I'd never

[–] [email protected] 13 points 8 months ago (2 children)
[–] [email protected] 12 points 8 months ago (3 children)

Thanks! I'm a Gitea user for years and was not aware of this. I was planning my own Gitea server, I will now forgo gitea for forgejo.

load more comments (3 replies)
[–] [email protected] 6 points 8 months ago

Exactly. I'd always go for Forgejo over Gitea now, especially since even Codeberg uses it (and I trust them)

load more comments (1 replies)
[–] [email protected] 8 points 8 months ago
[–] [email protected] 6 points 8 months ago

private repo?

[–] [email protected] 4 points 8 months ago* (last edited 8 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
Git Popular version control system, primarily for code
NAS Network-Attached Storage
SSH Secure Shell for remote terminal access

3 acronyms in this thread; the most compressed thread commented on today has 6 acronyms.

[Thread #442 for this sub, first seen 20th Jan 2024, 16:55] [FAQ] [Full list] [Contact] [Source code]

[–] [email protected] 3 points 8 months ago (3 children)

Is there a federated git out there yet?

[–] [email protected] 19 points 8 months ago

It's called "git"

[–] [email protected] 6 points 8 months ago (1 children)

Look into forgejo nee gitea. It's the closest to a working fed option.

load more comments (1 replies)
load more comments (1 replies)
load more comments
view more: next ›