~nhanb/gae-proxy

a1ca7d5975eb47424a101aabea82d1e340280381 — Bùi Thành Nhân 2 years ago 5b559a2
first deploy
3 files changed, 26 insertions(+), 2 deletions(-)

A .gcloudignore
M app.yaml
M send.py
A .gcloudignore => .gcloudignore +19 -0
@@ 0,0 1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
#   $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
\ No newline at end of file

M app.yaml => app.yaml +6 -1
@@ 1,2 1,7 @@
runtime: python37
secure: always

handlers:
  - url: /.*
    secure: always
    redirect_http_response_code: 301
    script: auto

M send.py => send.py +1 -1
@@ 5,7 5,7 @@ Lazy quick test script
"""

resp = requests.post(
    "http://localhost:8080/proxy",
    "https://nhansproxy.df.r.appspot.com",
    json={
        "url": "https://httpbin.org/get",
        "method": "get",