Giter Club home page Giter Club logo

goproxy-heroku's Introduction

gorpxoy-heroku

Heroku 是一个支持多种编程语言的云平台即服务,gorpxoy-heroku 则是可部署在 Heroku 平台的 gorpxoy 服务。gorpxoy-heroku 使用的 WebSocket 代替原本的 sockets 作为底层传输。

下面的部署方法,前提是你已经拥有一个heroku账号。

1.注册 Heroku 帐号

Heroku 提供免费账号,部分介绍如下:

512 MB RAM per dyno

Free apps sleep automatically after 30 mins of inactivity to conserve your dyno hours

Free apps wake automatically when a web request is received

https://devcenter.heroku.com/articles/limits

https://devcenter.heroku.com/articles/free-dyno-hours#usage

注册地址:https://signup.heroku.com/ (注册和部署过程可能需要梯子)

部署方法一(简单)

本方法为快速部署。

一、在heroku上的部署

1、登陆https://dashboard.heroku.com/login

2、登陆好后,点击

Deploy

3、执行以下三个步骤,见下图:

(1)输入App name.例如test1-goproxy

(2)Choose a region:选择一个.例如United States

(3)点击:Deploy app

4、执行完成以后,这是就完成了部署。

二、在客户端上执行

独立goproxy客户端:

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

在浏览器上设置代理:127.0.0.1:6600 http

安卓客户端:

安卓 goproxy-ss-plugin 插件配置可以写:

主机:test1-goproxy.herokuapp.com

端口:443

加密方法:aes-256-cfb

密码:123

插件参数:

-S http -j 123 -h aes-256-cfb -T wss -P test1-goproxy.herokuapp.com:443 --parent-ws-password pass --timeout 30000

注意:本次部署中需要调整的就是test1-goproxy改为你自己的名称。

部署方法二

该方法相对方法一步骤多一些,但是可以自己设置加密密码,修改启动参数。

本方法是fork项目后,可以修改相关的参数,再在heroku上部署。

一、在github上fork该项目并修改相关参数

(1)fork项目:https://github.com/snail007/goproxy-heroku

(2)修改配置参数,具体就是修改bootstrap里的内容,点击该文件

修改第7行内容,详细参考:https://snail007.github.io/goproxy/posts/http_cdn_ws/

二、在heroku上部署

1、登陆https://dashboard.heroku.com/apps

2、选择New -> Create new app

3、执行以下三个步骤,见下图:

(1)输入App name.例如test2-goproxy

(2)Choose a region:选择一个.例如United States

(3)点击:Create app

选择Deploy->GitHub Connect to github

4、连接到自己的github,搜索goproxy-heroku项目,点击连接Connect

5、手动部署Manual deploy -> Deploy Branch, 部署成功。


三、在客户端上执行(默认不修改代码)

独立goproxy客户端:

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

在浏览器上设置代理:127.0.0.1:6600 http

安卓客户端:

安卓 goproxy-ss-plugin 插件配置可以写:

主机:test2-goproxy.herokuapp.com

端口:443

加密方法:aes-256-cfb

密码:123

插件参数:

-S http -j 123 -h aes-256-cfb -T wss -P test2-goproxy.herokuapp.com:443 --parent-ws-password pass --timeout 30000

注意:本次部署中需要修改test2-goproxy为你自己的名称。

goproxy-heroku's People

Contributors

sjz123321 avatar snail007 avatar xiaomai299 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.