Go to file
2025-12-02 21:50:11 +03:00
.gitignore Json config 2025-09-27 16:30:35 +03:00
go.mod Working daemon with hardcoded params 2025-09-27 16:14:53 +03:00
main.go Added dispatching to cargo indices 2025-12-02 20:22:20 +03:00
readme.md Updating readme to v0.2 2025-12-02 21:50:11 +03:00

Merges several Gitea organizations' maven/cargo repositories to one path.

usage

./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
{
  "listen": {
    "maven": "localhost:49186",
    "cargo": "localhost:49187"
  },
  "domain": "git.landgrafhomyak.ru",
  "organizations": [
    "xomrk",
    "Multitasking",
    "LanguageUtilities"
  ]
}

Additional steps

Cargo (sparse)

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:

{
  "dl": "https://cargo.landgrafhomyak.ru/api/v1/crates/",
  "api": "https://cargo.landgrafhomyak.ru/",
  "auth-required": false
}