gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Option to limit external repository mirroring to only public projects on Gitea

Open tockudex opened this issue 11 months ago • 3 comments

Feature Description

For hosting providers with limited server resources, the ability to disable the mirroring of external repositories to a private project on Gitea would be greatly beneficial.

Indeed, limiting the creation of a plethora of private and potentially massive mirrors allows the providers to avoid unnecessary traffic and storage usage.

Screenshots

No response

tockudex avatar May 15 '25 04:05 tockudex

This is already possible. The default is enabled but you can set this in your app.ini and restart your instance

https://docs.gitea.com/administration/config-cheat-sheet#mirror-mirror

eeyrjmr avatar May 15 '25 12:05 eeyrjmr

Through an exchange with a maintainer of Forgejo (hard-fork of Gitea), I've been told that this feature is actually not implemented.

Apparently, you can either fully enable push/pull mirrors, or fully disable them...

tockudex avatar May 27 '25 17:05 tockudex

It seems it's useful for some public Gitea instances. But in fact, once users could run Gitea Actions with cron jobs, they can do mirrors easily.

lunny avatar May 27 '25 17:05 lunny

We close issues that need feedback from the author if there were no new comments for a month. :tea:

GiteaBot avatar Jun 27 '25 00:06 GiteaBot