How to limit the size of repository? #12802

Closed
opened 2025-11-02 10:21:25 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Gitttttttt on GitHub (Apr 9, 2024).

Feature Description

如何设置仓库的最大容量?我尝试在app.ini中添加以下配置,但似乎不起作用:

[repository]
ROOT = /data/git/repositories
MAX_REPOS_SIZE = 500

有全局的或者单个仓库的设置途径吗?感谢告知

Screenshots

No response

Originally created by @Gitttttttt on GitHub (Apr 9, 2024). ### Feature Description 如何设置仓库的最大容量?我尝试在app.ini中添加以下配置,但似乎不起作用: [repository] ROOT = /data/git/repositories MAX_REPOS_SIZE = 500 有全局的或者单个仓库的设置途径吗?感谢告知 ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:21:25 -06:00
Author
Owner

@lunny commented on GitHub (Apr 9, 2024):

Please speak in English.

@lunny commented on GitHub (Apr 9, 2024): Please speak in English.
Author
Owner

@Gitttttttt commented on GitHub (Apr 9, 2024):

Okay, I want to limit the size of repository, like 2GiB, does gitea support it ? If support, how can I do? @lunny

@Gitttttttt commented on GitHub (Apr 9, 2024): Okay, I want to limit the size of repository, like 2GiB, does gitea support it ? If support, how can I do? @lunny
Author
Owner

@lunny commented on GitHub (Apr 9, 2024):

It's not supported yet. There is a PR to fix this. #21820

@lunny commented on GitHub (Apr 9, 2024): It's not supported yet. There is a PR to fix this. #21820
Author
Owner

@Gitttttttt commented on GitHub (Apr 9, 2024):

ok, thks

@Gitttttttt commented on GitHub (Apr 9, 2024): ok, thks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12802