~nhanb/gae-proxy

81a6366cce5826733624b95e5c80a36cf86f0db7 — Bùi Thành Nhân 2 years ago cbed380
add README
1 files changed, 26 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +26 -0
@@ 0,0 1,26 @@
I wanted an HTTP(S) proxy on Google App Engine, because apparently you can get
rotating IPs for outgoing traffic automatically. Well it doesn't really rotate
but actually just _not guaranteed to stay stay static_. Worth a try anyway.

Originally wanted to implement a proper generic proxy but gave up fast because
while plain HTTP is easy, HTTPS requires actual tcp tunnelling which I'm not
really up for at the moment (is that even possible on GAE standard
evironment?).

So I devised my own scheme where every param is defined in a POST json body.
Dumbest thing that works right?

# Server

Create an `envars.yaml` file to store secret password:

```yaml
env_variables:
  GAEPROXY_PASSWORD: "long long string"
```

Then just `gcloud app deploy`.

# Use

See **send.py**. It's pretty straightforward.