https://github.com/fspv/gcp-reverse-proxy
Simple reverse proxy for GCP
https://github.com/fspv/gcp-reverse-proxy
Last synced: 4 months ago
JSON representation
Simple reverse proxy for GCP
- Host: GitHub
- URL: https://github.com/fspv/gcp-reverse-proxy
- Owner: fspv
- Created: 2023-02-16T16:57:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T13:50:23.000Z (over 3 years ago)
- Last Synced: 2025-01-10T12:16:29.376Z (over 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Running
=======
Deploy to cloud run (will fail first time)
```
gcloud run deploy
```
Set environment variable `PROXY_TO` to whatever you want the proxy to be pointing to and redeploy the service.
Set environment variable `AUTH_TOKEN` in case you want to add extra header to authenticate proxy on your destination.
Local testing
=======
```
docker build -t test .
docker run -e PROXY_TO=https://127.0.0.1 -it test
docker run -e AUTH_TOKEN="1234" -e PROXY_TO=https://127.0.0.1 -it test
```