| .gitignore | ||
| go.mod | ||
| main.go | ||
| readme.md | ||
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 listendomain- domain where Gitea is listeningorganizations- 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
}