Skip to content(if available)orjump to list(if available)

Gitea Private, Fast, Reliable DevOps Platform

mappu

My personal VPS was recently inundated with 800GB/month of traffic from AI scraper bots. Upon a bit of investigation they were getting stuck in some deep git history pages. I looked into Anubis and the like, but making carveouts for API endpoints seemed complicated.

Luckily the Gitea devs had recently implemented `REQUIRE_SIGNIN_VIEW = expensive` as a fix. It was minimally invasive for regular users, most pages can still be accessed without login, and it completely solved the AI bot problem, my traffic and load averages are back to normal.

Thank you Gitea devs for a great product, happy user for over a decade both personally and professionally.

rnhmjoj

I didn't know about this option, thanks. I had the same issue and solved it the hard way: I blackholed IP addresses from a bunch of ASNs (openai, microsoft, mistral).

captn3m0

Had similar problems, but ended up migrating to rgit + gickup instead.

techknowlogick

Thank YOU for using it :)

mikl

There’s also a more community-driven/open source fork of Gitea, called Forgejo: https://forgejo.org/

TheNewsIsHere

I love Forgejo. I recently started a project to exit my business (and eventually personal) git from Github. Gitea was my target having ruled out GitLab based on prior experience administering an instance, but I ended up going with a Forgejo and I am glad I did. The Gitea shenanigans around the for-profit entity and its opaque ownership structure were mainly what left a bad taste in my mouth, but there were a few other more minor factors that were use case specific. Fedora recently decided to switch to Forgejo, which is quite a feather in their cap.

I also was somewhat skeptical that a git hosting platform that had a business behind it with enterprise oriented offerings wasn’t yet self-hosting in the technical sense.

kstrauser

Same here. Forgejo is amazing and their development velocity is soaring. And https://codeberg.org is a great host for FOSS projects, in a way I wished Sourcehut would've been except that it leaned hard into some (to me) strange workflow choices.

I'm glad I made the switch.

techknowlogick

The Gitea project is still community-driven and has the same yearly elections for leadership that has been around for close to a decade now :)

edit: Gitea is fully MIT and per our governance charter that cannot change

adduc

> The Gitea project is still community-driven and has the same yearly elections for leadership that has been around for close to a decade now :)

[1] mentions changes to the election process that mandates half of the oversight committee to be appointed by the Gitea company. Doesn't that conflict with your assertion that the "same yearly elections" have been around?

Where can one find the governance charter for the Gitea project?

[1]: https://blog.gitea.com/quarterly-23q1/

tgmatt

This is nice in theory, but what happens when a community member wants to implement SAML for the community edition, or other premium features?

mappu

The SAML support in https://github.com/go-gitea/gitea/pull/29403 seems like it will get merged once the MR is a little bit higher quality.

EDIT (bit better source):

> Gitea Enterprise is an offering of CommitGo, not the Technical Oversight Committee of Gitea or the Gitea project itself. CommitGo remains committed to contributing back functionality to Gitea under the MIT license.

Via https://blog.gitea.com/gitea-enterprise/#faq

techknowlogick

I'm the main author of the PR to implement SAML in Gitea, and it sadly has stalled due to reviews from maintainers requiring it to be rewritten entirely using another library. Our governance charter requires a certain process for PRs going into Gitea, and cannot be side-stepped by anyone. As for some of the others, we've been able to merge them in already.

gchamonlive

Is MIT license and SSO features mutually exclusive? Or is it just a business model to sweep such features under a paid subscription?

esafak

Where are the screenshots?!

techknowlogick

Hey, I'm a part of the Gitea project leadership. Thanks for sharing. If you have any questions, please don't hesitate to ask :)

weitendorf

How do you feel about other companies potentially also hosting gitea for third parties?

Also, I’m curious about xorm and how you guys are using your internal database. Is it atypical to perform database operations outside of gitea or integrate with eg a third party users table?

thrill

Do you know if there are (settable) limits on image sizes using it as a container repository? Some of my larger images never fully get uploaded.

techknowlogick

Yes there are :) You can use the Package limit setting to change it (search the config docs for `LIMIT_SIZE_CONTAINER`), by default there is no limit, but if you are running into a 413 due to container uploads being so large, then it could be a reverse proxy configuration you might be running into.

tombert

I ran this on my server for awhile.

I liked it, it was pretty cool and seemed to be pretty comparable to Github, but I ended up just moving back to Github since I didn't really want to run my own infrastructure for a git repo.

Still, I would definitely consider it if I were running a company; if nothing else it wouldn't be scanned by Microsoft for training.

reactordev

Gitea server uptime: 6 years, 2 months, 12 days, 3 hours, and 42 minutes.

Keep making an amazing product for us who want to self-host.

infogulch

I accidentally allowed unrestricted signups on my publicly accessible gitea instance and came back 6 months later to 20,000 accounts hosting spam and malware. Oops. Cleanup required some mysql queries and the cli. Of course its important to pay careful attention to the configuration of any app, I'm just sharing the story of how I stubbed my toe on this furniture. :)

My instance is mostly used for archiving / mirroring interesting repos, more so since I had a glancing brush with censorship on github: a contributor to one of my repos was banned, which means entire issues and discussions and PRs they started were vanished overnight. This person was prolific and opened a lot of issues, so my repo became a graveyard of broken references and missing threads with conclusions and plans I no longer remember. Despite the minor scale of my project, this incident was rage inducing; it felt like github rebased my master branch to remove historical commits because someone was offended. Completely inappropriate imo.

For self-hosting an archival-oriented mirror, a few features would be nice:

    1. Automatically mirror every repo I star on github
    2. Continuously mirror issues, discussions, and PRs
    3. "safe" mirroring (see #14076), so non-ff/force-push head updates have the old head tagged to preserve history

weitendorf

Recently started using Gitea and have two main questions:

What is the scoop on the schism leading to forgejo? Like, the actual reason - is it just the existence of a for profit company with partial governance over gitea or is there more of a story? And does forgejo have substantially different plans for feature development vs gitea?

Secondly, how do get in contact with contributors for sponsored work? Ideally that would be the maintainers but I feel like they have a conflict of interest with anybody trying to offer gitea to third parties…

vunderba

Love Gitea. Took less than an hour to get an dockerized instance of it running on my Debian VPS to handle syncing my Obsidian notes between smartphone, laptop, etc.

techknowlogick

Thanks so much for saying so :) If you ever need any help please don't hesitate to hop into our forum, chat or issues tracker

fishgoesblub

I'm a big fan of Gitea. Incredibly easy to setup with Docker and is fast. As a user, it's incredible the difference in responsiveness in a GitLab instance, and a Gitea instance.

techknowlogick

Thanks so much for saying so. Not sure if you are on the latest major release yet, but hopefully you've seen that resource usage is much lower and response times are even faster.

fishgoesblub

I am! I have my container auto-update so I'm always up to date :) I personally haven't seen decreased response times, though that's likely because my personal instance was already around 30-60ms to generate the page, pretty darn quick regardless!

ggandhi

Love this products and its simplicity. It was challenge to setup actions but other than that, its a perfect product for our small team.

0xbadcafebee

"Get a DevOps instance"

but is it web scale?

gtirloni

Anything new about it?

techknowlogick

We are shipping ~300 PRs monthly (plus more getting reviewed), so there are always new things :) I have a few big PRs for longstanding feature requests that should go in soon that I'm pretty excited for.

edit: Im also pretty excited about the anti-crawler enhancements that went in the latest major release

siwatanejo

Does it support GithubActions?

techknowlogick

It does :) Gitea Actions are compatible with GitHub Actions. For the most part the same workflows you'd use on GitHub will work with Gitea.