Skip to content

Yukaii/http-proxy-cloud-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple http-proxy on GCP

Deployment

gcloud functions deploy http-proxy \
  --gen2 \
  --runtime=nodejs18 \
  --region=asia-east1 \
  --source=. \
  --entry-point=handler \
  --trigger-http \
  --allow-unauthenticated

Usage

For example, if the deployed URL is: https://my-proxy.run.app, then you can use it like this:

curl -H "X-Target: https://example.com" https://my-proxy.run.app/subpath-for-example-com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published