X Tutup
Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Function - Proxy

Queries a given URL from GCF to check connectivity eg. for testing with Cloudflare / Firewall rules

Query content:

{"url": "http://ifconfig.co/json"}

Response is HTTP status code and message, blank line and then the content:

200 OK

<raw_content>
  • main.py - the code
  • requirements.txt - the pip modules to bootstrap
  • deploy.sh - upload the code and deps

Upload the function to GCF in the current GCP project - this script will call gcloud functions deploy with the required switches:

./deploy.sh
X Tutup