Custom HTTPS Domain for Google Cloud Run
Use agentdomains proxy in front of your *.a.run.app host. It works globally in seconds, unlike regional Cloud Run mappings.
Origin-to-edge flow for Google Cloud Run: connect my-service-abc123-uc.a.run.app to cloudrun-api.agentdomains.co with automatic HTTPS.
1. Choose Mode: Edge Proxy vs DNS-01
Edge HTTPS Reverse Proxy
RECOMMENDED- Point at any public hostname without
https://. - Cloudflare edge handles TLS 1.3 automatically.
- Zero Certbot config and zero IP exposure.
A Record + ACME DNS-01
FOR BARE VPS- Point directly at your server IPv4 or IPv6 address.
- Issue certs via Caddy or
agentdomains txtDNS-01. - Works even when your firewall blocks port 80.
agentdomains signup
agentdomains claim cloudrun-api --email you@example.com --domain agentdomains.co
agentdomains proxy cloudrun-api my-service-abc123-uc.a.run.app --domain agentdomains.co
2. Interactive: Generate My CLI Command
Enter your subdomain label and origin below. Copy the generated commands or check live name availability.
3. Google Cloud Run Origin Configuration
Apply this config on Google Cloud Run so headers, TLS, and routing match your new hostname.
# Ensure unauthenticated invoke is enabled for public endpoints/webhooks:
gcloud run services add-iam-policy-binding my-service \
--member="allUsers" --role="roles/run.invoker" --region=us-central1
Operational Checklist
- Cloud Run scales cleanly to zero; AgentDomains edge proxy passes traffic straight to your regional
.a.run.apporigin. - Never include
https://in the origin argument toagentdomains proxy.
Frequently asked questions
Should I use edge proxy or an A record for Google Cloud Run?
Use agentdomains proxy in front of your *.a.run.app host. It works globally in seconds, unlike regional Cloud Run mappings.
How do I check DNS propagation for Google Cloud Run?
Open /tools/dns-ssl-checker or run dig @1.1.1.1 cloudrun-api.agentdomains.co. Confirm both Cloudflare and Google return your record.
Can an AI agent configure Google Cloud Run routing via MCP?
Yes. Connect your client to https://mcp.agentdomains.co. Ask it to call claim_domain and set_proxy.
Related Host Playbooks
AWS EC2
Point an A record at your EC2 Elastic IP with Caddy TLS. Behind an AWS ALB, use agentdomains proxy instead.
AWS Lightsail
Attach a Lightsail Static IP and add an A record. Enable HTTPS with Caddy or bncert-tool.
Oracle Cloud (OCI Free Tier)
Point an A record at your OCI Always Free ARM VM public IP. Remember OCI requires opening ports 80/443 in BOTH the VCN Security List AND the VM’s local iptables!
Supabase Webhooks & Edge Functions
Use agentdomains proxy for a stable webhook URL. Swap backend hosts later without editing Supabase settings.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.