this post was submitted on 29 Mar 2025
34 points (97.2% liked)

Selfhosted

45394 readers
769 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 2 years ago
MODERATORS
 

Hey everyone,

I recently went through the process of setting up a self-hosted Gitea server on a Proxmox LXC and wanted to share the steps I took. A big part of this was securing external access using Cloudflare Zero Trust tunnels for both the web UI (HTTP) and Git operations (SSH).

I know much of the information on Gitea, Proxmox, and Cloudflare tunnels exists separately, but I wanted to try and bring it all together in one place based on my experience. It's also part of my effort to document my own self-hosting journey. πŸ› οΈ

The guide covers things like:

  • Installing Gitea on Proxmox (using helper scripts).
  • Basic Gitea configuration (web UI, users, keys).
  • Setting up Cloudflare tunnels for secure HTTP and SSH access.
  • Configuring the local SSH client and Gitea for tunnelled SSH connections.

It's basically a walkthrough of how I got my personal Git server running and accessible securely from outside my network. Maybe not brand new information for everyone here, but hopefully, it's a useful aggregation for someone looking to do something similar.

You can read the full post here: https://cachaza.cc/blog/03-self-hosted-gitea/

Happy to hear any thoughts or feedback! Cheers.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 4 days ago (1 children)

There is any particular reason to deploy a new gitea instance instead of forgejo in 2025?

[–] [email protected] 3 points 4 days ago

This

I would go Forgejo all day every day

[–] [email protected] 2 points 4 days ago (1 children)

I played with Forgejo recently, but couldn't for the life of me figure out how to get the SSH connections passed to the Forgejo LXC from my Nginx Proxy Manager. No matter what I did, the connection went to the NPM box, not the Forgejo box.

[–] [email protected] 2 points 4 days ago* (last edited 4 days ago)

You need to forward traffic

SSH is just plain TCP. You probably were trying to use http.