GithubHelp home page GithubHelp logo

gost-heroku's Introduction

部署

本地客户端执行:gost -L=:1080 -F=ss+wss://aes-128-cfb:[email protected]:443

挂ngrok的方法如下:

sudo apt-get install heroku
git clone https://github.com/xuiv/gost-heroku.git
cd gost-heroku

在app.json中添加如下内容:

  "env": {
    "AUX_PORT": {
      "description": "gost socket5 port",
      "value": "9090"
    },    
    "NGROK_API_TOKEN": {
      "description": "ngrok authtoken",
      "value": "4bzM2n2AJwEH3jD2mTxWP_6Vmy6iihkUa2HaDmCmv80" <-- 此处换成你的ngrok认证字符串
    },    
    "NGROK_COMMAND": {
      "description": "ngrok protocol",
      "value": "tcp"
    },
    "NGROK_OPTS": {
      "description": "other ngrok command options",
      "value": ""
    }
  },

修改Procfile为:

web: with_ngrok gost-heroku -L=ss+ws://aes-128-cfb:1234567890@:$PORT -L=socks5://:9090

接下来执行:

heroku login
heroku create yourappid
heroku config:set NGROK_API_TOKEN=4bzM2n2AJwEH3jD2mTxWP_6Vmy6iihkUa2HaDmCmv80 -a yourappid
heroku config:set AUX_PORT=9090 -a yourappid
heroku config:set NGROK_COMMAND=tcp  -a yourappid
heroku buildpacks:add https://github.com/xuiv/heroku-buildpack-ngrok.git -a yourappid
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-go.git -a yourappid
git push heroku master

去ngrok查看转发的域名和端口,这个是直接的soket5代理。

go-getting-started

A barebones Go app, which can easily be deployed to Heroku.

This application supports the Getting Started with Go on Heroku article - check it out.

Running Locally

Make sure you have Go and the Heroku Toolbelt installed.

$ go get -u github.com/heroku/go-getting-started
$ cd $GOPATH/src/github.com/heroku/go-getting-started
$ heroku local

Your app should now be running on localhost:5000.

You should also install govendor if you are going to add any dependencies to the sample app.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy

Documentation

For more information about using Go on Heroku, see these Dev Center articles:

gost-heroku's People

Contributors

xuiv01 avatar yuyangzxw avatar

Watchers

 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.