Merges several Gitea organizations' maven/cargo repositories to one path. ## usage ```shell ./maven-on-gitea-redirector-v0.2 config.json ``` ## config - `listen` - endpoint where this daemon will listen - `domain` - domain where Gitea is listening - `organizations` - list of Gitea organizations which should be included to search ```json { "listen": { "maven": "localhost:49186", "cargo": "localhost:49187" }, "domain": "git.landgrafhomyak.ru", "organizations": [ "xomrk", "Multitasking", "LanguageUtilities" ] } ``` ## Additional steps ### Cargo ([sparse](https://doc.rust-lang.org/cargo/reference/registry-index.html#index-format)) Client checks first `/config.json`, which contains paths to API roots. Since each organization has its own config, it should be manually redirected (by `nginx` etc.) to custom config which contains paths to wrapper instead of org registry: ```json { "dl": "https://cargo.landgrafhomyak.ru/api/v1/crates/", "api": "https://cargo.landgrafhomyak.ru/", "auth-required": false } ```