go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.04k stars 5.49k forks source link

Support for multiple different repo root dirs #24783

Open csillag opened 1 year ago

csillag commented 1 year ago

Feature Description

Different repositories might have different storage requirements. (speed, size, etc.) You might want to put some data on SSD, something on HDD, something on RAID, or a combination of the above, etc.

It would be great if one could specify multiple different data ROOT directories, and when creating a new repo (from the web UI or via the API), one could optionally specify which data directory to use for storing the files for this specific new repo.

Screenshots

No response

csillag commented 1 year ago

Currently, the only way to achieve this (storing the data files on different devices) is to run multiple instances of gitea, but then the different repositories must be accessed using different URLs. Ideally, the storage options of a given repo should be an internal setting of that repo, and not influence the URL.

lunny commented 1 year ago

Ah, yes. #22775 could be the first step towards the requirement.