From 5fefc41f15171eb4a959475dbe5b16a70552f4e2 Mon Sep 17 00:00:00 2001 From: Andrew Golovashevich Date: Tue, 2 Dec 2025 21:50:11 +0300 Subject: [PATCH] Updating readme to v0.2 --- readme.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index c4d58f6..8b0f0c0 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ -Merges several Gitea organizations' maven repositories to one path. +Merges several Gitea organizations' maven/cargo repositories to one path. ## usage ```shell -./maven-on-gitea-redirector-v0.1 config.json +./maven-on-gitea-redirector-v0.2 config.json ``` ## config @@ -22,4 +22,19 @@ Merges several Gitea organizations' maven repositories to one path. "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 +} ``` \ No newline at end of file