this post was submitted on 27 Jul 2025
68 points (98.6% liked)

Selfhosted

60094 readers
908 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.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

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

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 7 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I am looking for recommendations for an open source self-hosted ~~version control system~~ source code hosting service. I found a few, but I can't decide on which one to pick:

If there's a better one than the ones I've listed here, I'd love to hear about it!

I care primarily about privacy and security, if that makes any difference.

you are viewing a single comment's thread
view the rest of the comments
[–] i_am_not_a_robot@discuss.tchncs.de 10 points 11 months ago (3 children)

You're missing GitLab. I'd be looking at GitLab or Forgejo.

But you might not need this. When you access a private Git repository, you're normally connecting over SSH and authenticating using SSH keys. By default, if you have Git installed on a server you can SSH to and you have a Git repository on that server in a location you can access, you can use that server as a Git remote. You only really want one these services if you want the CI pipelines or collaboration tools.

[–] vividspecter@aussie.zone 9 points 11 months ago

Having a web UI is useful even if you're not using the extra tools. Not mandatory of course, but nice.

[–] Arigion@feddit.org 2 points 11 months ago

This is not true. There are lots of places where ssh/vpn is blocked by a firewall while https usually is allowed. So if you want to access/push code while travelling it might be really helpful to have https access to the repo. That was the only reason for me to set up gitlab years ago.

[–] kattfisk@lemmy.dbzer0.com 1 points 11 months ago (1 children)

I feel like you made it sound a bit backwards :)

There's nothing to install on a "git server", git doesn't have a server component. You can point your git client to a remote place where it can store its files using SSH. But you don't install anything on the server for this.

Which is why self hosting a git remote is super easy. All you need is a server with ssh and a little bit of storage.

If you just want to sync code between different computers and have a backup, that's all you need.

[–] i_am_not_a_robot@discuss.tchncs.de 3 points 11 months ago (1 children)

Git does have a server component. When git connects to an ssh remote it executes an ssh command that needs to be present.

[–] kattfisk@lemmy.dbzer0.com 1 points 11 months ago

You are right! I was fooled by my server already having git installed and this requirement not being mentioned anywhere. I guess that explains why it uses SSH rather than SCP/SFTP.