Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tockudex opened this issue May 15, 2025 · 3 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@tockudex
Copy link

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 tockudex added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 15, 2025
@eeyrjmr
Copy link
Contributor

eeyrjmr commented May 15, 2025

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

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label May 27, 2025
@tockudex
Copy link
Author

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...

@lunny
Copy link
Member

lunny commented May 27, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants