Gangmax Blog

Goagent Installation

From here.

“GoAgent” is a proxy tool which including the server side and the client side. The server side should be uploaded to the Google App Engine, the client side works in your local environment which accepts your requests and sends them to the server side you uploaded.

Server

  1. Register to get a Google App ID from here.

  2. Download the “Google App Engine SDK” from here, with which you can upload the “GoAgent” server side code to Google AppEngine.

  3. Download the “GoAgent” binary from here.

  4. Extract the GoAgent binary, modify the “app.yaml” file in the “#{goagent}/server/python” directory by filling your Google App ID.

  5. Upload the GoAgent server side to AppEngine:

1
2
cd /home/user/google_appengine # Go to the Google SDK directory.
sudo python appcfg.py update goagent/server/python # You'll be prompted Google account info.
  1. Done.

Client

  1. Modify the “goagent/local/proxy.ini” file by adding your App ID:
1
2
3
4
5
[gae]

enable = 1

appid = your_app_id
  1. Run the following command to start the client:
1
2
cd goagent/local
sudo python proxy.py
  1. Now you can use the proxy. If you want to use it in console, you may need to run the following command first:
1
export http_proxy='http://localhost:8087'

Comments