{"id":13775847,"url":"https://github.com/snail007/goproxy-heroku","last_synced_at":"2025-03-31T07:09:35.548Z","repository":{"id":38360032,"uuid":"198378230","full_name":"snail007/goproxy-heroku","owner":"snail007","description":"goproxy heroku 一键部署套装，把heroku变为免费的http(s)\\socks5代理，搜索学习资料。","archived":false,"fork":false,"pushed_at":"2022-04-29T15:15:14.000Z","size":20617,"stargazers_count":130,"open_issues_count":4,"forks_count":259,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T05:08:41.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/snail007.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}},"created_at":"2019-07-23T07:39:13.000Z","updated_at":"2024-11-21T06:37:42.000Z","dependencies_parsed_at":"2022-07-12T17:27:40.212Z","dependency_job_id":null,"html_url":"https://github.com/snail007/goproxy-heroku","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/snail007%2Fgoproxy-heroku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snail007%2Fgoproxy-heroku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snail007%2Fgoproxy-heroku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snail007%2Fgoproxy-heroku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snail007","download_url":"https://codeload.github.com/snail007/goproxy-heroku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429487,"owners_count":20775807,"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":[],"created_at":"2024-08-03T17:01:52.357Z","updated_at":"2025-03-31T07:09:35.530Z","avatar_url":"https://github.com/snail007.png","language":"Shell","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"## gorpxoy-heroku\n\n### Heroku 是一个支持多种编程语言的云平台即服务，gorpxoy-heroku 则是可部署在 Heroku 平台的 gorpxoy 服务。gorpxoy-heroku 使用的 WebSocket 代替原本的 sockets 作为底层传输。\n\n#### 下面的部署方法，前提是你已经拥有一个heroku账号。\n\n1.注册 Heroku 帐号\n\nHeroku 提供免费账号，部分介绍如下：\n\n512 MB RAM per dyno\n\nFree apps sleep automatically after 30 mins of inactivity to conserve your dyno hours\n\nFree apps wake automatically when a web request is received\n\nhttps://devcenter.heroku.com/articles/limits\n\nhttps://devcenter.heroku.com/articles/free-dyno-hours#usage\n\n注册地址：https://signup.heroku.com/ （注册和部署过程可能需要梯子）\n\n\n## 部署方法一（简单）\n\n本方法为快速部署。\n\n一、在heroku上的部署\n\n1、登陆https://dashboard.heroku.com/login\n\n2、登陆好后，点击\n\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/snail007/goproxy-heroku)\n\n3、执行以下三个步骤，见下图：\n\n（1）输入App name.例如`test1-goproxy`\n\n（2）Choose a region:选择一个.例如United States\n\n（3）点击：Deploy app\n\n\u003cimg src=\"/doc/1.png\" width=\"500px\" height=\"auto\"\u003e\n\n4、执行完成以后，这是就完成了部署。\n\n\u003cimg src=\"/doc/2.png\" width=\"500px\" height=\"auto\"\u003e\n\n二、在客户端上执行\n\n独立goproxy客户端：\n\n`proxy.exe http -t tcp -p :6600 -T wss -P test1-goproxy.herokuapp.com:443 --parent-ws-password pass -q 8.8.8.8:53 --timeout 30000`\n\n在浏览器上设置代理：127.0.0.1:6600   http\n\n安卓客户端：\n\n安卓 [goproxy-ss-plugin](https://github.com/snail007/goproxy-ss-plugin-android) 插件配置可以写：\n\n```text\n主机：test1-goproxy.herokuapp.com\n\n端口：443\n\n加密方法：aes-256-cfb\n\n密码：123\n\n插件参数：\n```\n\n`-S http -j 123 -h aes-256-cfb -T wss -P test1-goproxy.herokuapp.com:443 --parent-ws-password pass --timeout 30000`\n\n注意：本次部署中需要调整的就是`test1-goproxy`改为你自己的名称。\n\n## 部署方法二\n\n该方法相对方法一步骤多一些，但是可以自己设置加密密码，修改启动参数。\n\n本方法是fork项目后，可以修改相关的参数，再在heroku上部署。\n\n一、在github上fork该项目并修改相关参数\n\n（1）fork项目：https://github.com/snail007/goproxy-heroku\n\n（2）修改配置参数，具体就是修改bootstrap里的内容，点击该文件\n\n\u003cimg src=\"/doc/2.1.png\" width=\"500px\" height=\"auto\"\u003e\n\n修改第7行内容，详细参考：https://snail007.github.io/goproxy/posts/http_cdn_ws/\n\n二、在heroku上部署\n\n1、登陆https://dashboard.heroku.com/apps\n\n2、选择New -\u003e Create new app\n\n\u003cimg src=\"/doc/2.2.png\" width=\"500px\" height=\"auto\"\u003e\n\n3、执行以下三个步骤，见下图：\n\n（1）输入App name.例如`test2-goproxy`\n\n（2）Choose a region:选择一个.例如United States\n\n（3）点击：Create app\n\n\u003cimg src=\"/doc/2.3.png\" width=\"500px\" height=\"auto\"\u003e\n\n选择Deploy-\u003eGitHub Connect to github\n\n\u003cimg src=\"/doc/2.4.png\" width=\"500px\" height=\"auto\"\u003e\n\n4、连接到自己的github，搜索goproxy-heroku项目，点击连接Connect\n\n\u003cimg src=\"/doc/2.5.png\" width=\"500px\" height=\"auto\"\u003e\n\n5、手动部署Manual deploy -\u003e Deploy Branch， 部署成功。\n\n\u003cimg src=\"/doc/2.6.png\" width=\"500px\" height=\"auto\"\u003e\n\u003cbr\u003e\n\u003cimg src=\"/doc/2.7.png\" width=\"500px\" height=\"auto\"\u003e\n\n三、在客户端上执行（默认不修改代码）\n\n独立goproxy客户端：\n\n`proxy.exe http -t tcp -p :6600 -T wss -P test2-goproxy.herokuapp.com:443 --parent-ws-password pass -q 8.8.8.8:53 --timeout 30000`\n\n在浏览器上设置代理：127.0.0.1:6600   http\n\n安卓客户端：\n\n安卓 [goproxy-ss-plugin](https://github.com/snail007/goproxy-ss-plugin-android) 插件配置可以写：\n\n```text\n主机：test2-goproxy.herokuapp.com\n\n端口：443\n\n加密方法：aes-256-cfb\n\n密码：123\n\n插件参数：\n```\n`-S http -j 123 -h aes-256-cfb -T wss -P test2-goproxy.herokuapp.com:443 --parent-ws-password pass --timeout 30000`\n\n注意：本次部署中需要修改test2-goproxy为你自己的名称。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnail007%2Fgoproxy-heroku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnail007%2Fgoproxy-heroku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnail007%2Fgoproxy-heroku/lists"}