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