{"id":21866872,"url":"https://github.com/rootmos/go-pkg-proxy","last_synced_at":"2026-04-20T03:02:56.543Z","repository":{"id":219401549,"uuid":"741959008","full_name":"rootmos/go-pkg-proxy","owner":"rootmos","description":"Golang module proxy/rerouter","archived":false,"fork":false,"pushed_at":"2024-01-11T13:19:28.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T21:28:39.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-11T13:19:04.000Z","updated_at":"2024-01-11T13:19:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4df79be4-1591-4665-ac23-7df27136d2a3","html_url":"https://github.com/rootmos/go-pkg-proxy","commit_stats":null,"previous_names":["rootmos/go-pkg-proxy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rootmos/go-pkg-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fgo-pkg-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fgo-pkg-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fgo-pkg-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fgo-pkg-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootmos","download_url":"https://codeload.github.com/rootmos/go-pkg-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fgo-pkg-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T05:07:46.867Z","updated_at":"2026-04-20T03:02:56.529Z","avatar_url":"https://github.com/rootmos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-pkg-proxy\n============\n\n[![builds.sr.ht status](https://builds.sr.ht/~rootmos/go-pkg-proxy.svg)](https://builds.sr.ht/~rootmos/go-pkg-proxy?)\n\nA tiny HTTP server that helps you configure repository URL:s for go modules,\nusing the [`?go-get=1`](https://go.dev/ref/mod#vcs-find) query parameter.\nUseful when you have your own domain, but your modules live in different\nversion control systems.\n\n## Example\n\nModules and the corresponding reposity URLs are configured in a JSON file:\n```json\n[\n    {\n        \"name\": \"go-pkg-proxy\",\n        \"root\": \"rootmos.io/go-pkg-proxy\",\n        \"repo\": \"https://git.sr.ht/~rootmos/go-pkg-proxy\"\n    },\n    {\n        \"names\": [\n            \"go-utils\",\n            \"go-utils/logging\"\n        ],\n        \"root\": \"rootmos.io/go-utils\",\n        \"repo\": \"https://git.sr.ht/~rootmos/go-utils\"\n    }\n]\n```\n\nand then configure your internet-facing HTTP server to route the `?go-get=1` requests.\nFor example using [nginx](https://nginx.org/en/docs/http/ngx_http_core_module.html#var_args):\n```\nlocation / {\n  if ($args ~ \"go-get=1\") {\n    proxy_pass http://127.0.0.1:8000;\n    break;\n  }\n\n  root webroot;\n}\n```\n(A complete configuration can be found [here](doc/nginx.conf) which is [tested here](test-nginx.py).)\n\n## Usage\n```\nUsage of go-pkg-proxy:\n  -addr string\n    \tbind to addr:port (default \":8000\")\n  -dry-run\n    \ttry loading modules and exit afterwards\n  -json-log-file string\n    \tlog JSON to file (default \"/dev/null\")\n  -json-log-level string\n    \tset JSON log level (default \"INFO\")\n  -log-file string\n    \tlog to file (default \"/dev/stderr\")\n  -log-level string\n    \tset log level (default \"INFO\")\n  -modules string\n    \tfetch modules from URL (default \"file://go.json\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fgo-pkg-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootmos%2Fgo-pkg-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fgo-pkg-proxy/lists"}