{"id":13756108,"url":"https://github.com/sakeven/httpproxy","last_synced_at":"2025-05-10T03:30:46.645Z","repository":{"id":21868214,"uuid":"25191758","full_name":"sakeven/httpproxy","owner":"sakeven","description":"基于 Go 开发，支持 http/1.1 以上版本的 HTTP(S) 代理。（Why not try out Mika?）","archived":true,"fork":false,"pushed_at":"2018-03-04T11:50:55.000Z","size":186,"stargazers_count":147,"open_issues_count":3,"forks_count":44,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-16T11:33:35.223Z","etag":null,"topics":["go","http-proxy","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sakeven.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}},"created_at":"2014-10-14T05:36:13.000Z","updated_at":"2024-10-31T09:17:04.000Z","dependencies_parsed_at":"2022-08-17T22:00:59.940Z","dependency_job_id":null,"html_url":"https://github.com/sakeven/httpproxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakeven%2Fhttpproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakeven%2Fhttpproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakeven%2Fhttpproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakeven%2Fhttpproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakeven","download_url":"https://codeload.github.com/sakeven/httpproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253358069,"owners_count":21895967,"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":["go","http-proxy","proxy"],"created_at":"2024-08-03T11:00:36.462Z","updated_at":"2025-05-10T03:30:46.288Z","avatar_url":"https://github.com/sakeven.png","language":"Go","funding_links":[],"categories":["Go","\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"b6f25145e99ea944cbb528a24afaa0be\"\u003e\u003c/a\u003eHTTP\u0026\u0026HTTPS"],"readme":"## httpproxy\n[![Go Report Card](https://goreportcard.com/badge/github.com/sakeven/httpproxy)](https://goreportcard.com/report/github.com/sakeven/httpproxy)\n\n* 基于 Go 开发，支持 HTTP/1.1 以上版本的 HTTP 代理。\n\n尝试下 TCP 流量加密代理：[Mika](https://github.com/sakeven/mika)\n\n## 细节功能：\n* 支持内容缓存和重校验\n* 支持 GET、POST、CONNECT 等方法\n* 支持账号登入与验证\n* 支持配置文件\n* 提供 Web 版管理和调试界面\n* 支持反向代理\n\n## 正在进行中\n* 资源限定(各种超时，最大文件大小，最大缓存大小，最大头大小等，最大并发量，最大请求速度，最大传输速度等)\n\n## 配置\n  \n配置文件在 $HOME/.httproxy/config.json，采用 JSON 格式，包含\n\n* port：代理服务器工作端口\n* webport：代理服务器 web 管理端口\n* reverse：设置反向代理，值为 true 或者 false\n* proxy_pass：反向代理目标服务器地址，如 \"127.0.0.1:80\"\n* auth：开启代理认证，值为 true 或者 false\n* cache：开启缓存，值为 true 或者 false\n* cache_timeout：缓存更新时间，单位分钟\n* log：值为 1 时输出调试信息，为 0 时输出普通监控信息\n* gfwlist：网站屏蔽列表，如 [\"baidu.com\",\"google.com\"]\n* admin：web 管理用户\n* user：代理服务器普通用户\n\n一个简单配置演示如下\n\n```json\n{\n    \"port\": \":8080\",\n    \"webport\": \":6060\",\n    \"reverse\": true,\n    \"proxy_pass\": \"127.0.0.1:80\",\n    \"auth\": true,\n    \"cache\": false,\n    \"cache_timeout\": 30,\n    \"log\": 1,\n    \"gfwlist\": [\n        \"baidu.com\",\n        \"google.com\"\n    ],\n    \"admin\": {\n        \"Admin\": \"prxy\"\n    },\n    \"user\": {\n        \"proxy\": \"proxy\"\n    }\n}\n/*this is a configure for proxy server. log: 1 for Information, 0 for DebugInfor*/\n```\n\n## 构建\n* 安装\n\n        $ go get github.com/sakeven/httpproxy\n\n* 运行\n\n        $ ./${GOPATH}/bin/httpproxy\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakeven%2Fhttpproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakeven%2Fhttpproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakeven%2Fhttpproxy/lists"}