繁体   English   中英

Google App Engine 将传出请求重定向到 Compute Engine 代理

[英]Google App Engine redirect outgoing requests to Compute Engine proxy

我目前在 Java 中设置了 Google App Engine web 服务,该服务向其他 Google API 发出传出 http 请求。 为了保护我的 Google API 密钥,我可以添加 IP 地址限制/白名单,但我不能这样做,因为 App Engine 没有 static IP。

我找到的解决方案是通过 Google Compute Engine(使用 static IP)创建一个 VM,并安装一个 Squid 代理服务器来重定向请求。

在 VM 上安装 Squid 后,我如何才能通过代理服务器实际重定向来自 App Engine 的请求? 我对代理配置没有太多经验,也找不到任何支持 Java web 应用程序的可靠答案。

If the API calls are not required to be realtime from your app engine service, you can route them through cloud tasks and create HTTP Target tasks that target your compute engine VM with static IP address. 然后,处理程序可以将其转发给其他 API。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM