{"id":25400566,"url":"https://github.com/ymyuuu/hubp","last_synced_at":"2025-04-06T20:13:52.571Z","repository":{"id":276945011,"uuid":"926221204","full_name":"ymyuuu/HubP","owner":"ymyuuu","description":"基于 Go 开发的超轻量级 Docker 镜像加速工具。旨在提升拉取效率，规避网络限制，伪装非 Docker 请求，有效拉低风控","archived":false,"fork":false,"pushed_at":"2025-03-21T02:25:05.000Z","size":123,"stargazers_count":100,"open_issues_count":2,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T20:13:46.318Z","etag":null,"topics":["docker","docker-image","docker-proxy","go"],"latest_commit_sha":null,"homepage":"https://hubp.8bq.ovh","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymyuuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-02T20:37:04.000Z","updated_at":"2025-04-01T12:54:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"631bff99-c824-4d37-8bab-086ed203c897","html_url":"https://github.com/ymyuuu/HubP","commit_stats":null,"previous_names":["ymyuuu/hubp"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyuuu%2FHubP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyuuu%2FHubP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyuuu%2FHubP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyuuu%2FHubP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymyuuu","download_url":"https://codeload.github.com/ymyuuu/HubP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543595,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-image","docker-proxy","go"],"created_at":"2025-02-16T00:18:26.645Z","updated_at":"2025-04-06T20:13:52.548Z","avatar_url":"https://github.com/ymyuuu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HubP\n\nHubP 是一款基于 Go 开发的超轻量级 Docker 镜像加速工具。它能有效提升镜像拉取效率，绕过网络限制，并通过请求伪装降低风控风险\n\n- **群聊**：[HeroCore](https://t.me/HeroCore)\n- **频道**：[HeroMsg](https://t.me/HeroMsg)\n\n## 快速开始\n\n### 下载安装\n\n提供两种安装方式:\n\n1. **直接下载二进制文件**\n\n从 [GitHub Releases](https://github.com/ymyuuu/HubP/releases) 下载对应系统的预编译文件:\n\n```bash\n# Linux/macOS\nchmod +x HubP\n./HubP\n\n# Windows\nHubP.exe\n```\n\n2. **源码编译**\n\n```bash\n# 克隆代码\ngit clone https://github.com/ymyuuu/HubP.git\ncd HubP\n\n# 编译\ngo build -o HubP main.go\n```\n\n### Docker 部署\n\n```bash\n# 拉取镜像\ndocker pull ymyuuu/hubp:latest\n\n# 运行容器\ndocker run -d --name hubp -p 18184:18184 ymyuuu/hubp:latest\n```\n\n## 配置说明\n\nHubP 支持命令行参数和环境变量两种配置方式:\n\n### 命令行参数\n\n| 参数 | 说明 | 默认值 |\n|------|------|--------|\n| `-l, --listen` | 监听地址 | `0.0.0.0` |\n| `-p, --port` | 监听端口 | `18184` |\n| `-ll, --log-level` | 日志级别 (debug/info/warn/error) | `info` |\n| `-w, --disguise` | 伪装网站 URL | `onlinealarmkur.com` |\n\n示例:\n\n```bash\n./HubP -l 0.0.0.0 -p 18184 -ll debug -w onlinealarmkur.com\n```\n\n### 环境变量 (Docker)\n\n```bash\nsudo docker run -d --restart unless-stopped --name HubP \\\n  -p 18184:18184 \\\n  -e HUBP_LOG_LEVEL=debug \\\n  -e HUBP_DISGUISE=onlinealarmkur.com \\\n  ymyuuu/hubp:latest\n```\n\n## 开发指南\n\n如需自行构建,请按以下步骤操作:\n\n```bash\n# 安装依赖\ngo mod tidy\ngo mod download\n\n# 编译(注入版本号)\ngo build -ldflags=\"-s -w -X main.Version=v1.0.0\" -o HubP main.go\n```\n\n## 许可证\n\n本项目采用 Apache 许可证，详细内容请参见 [LICENSE](LICENSE) 文件\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymyuuu%2Fhubp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymyuuu%2Fhubp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymyuuu%2Fhubp/lists"}