GCP代理到不安全的端点

huangapple go评论65阅读模式
英文:

GCP Proxy to insecure endpoint

问题

我想发送一个请求(https)到GCP,让GCP将该请求路由到另一个(http)的本地端点。

例如:

请求发起方:https://some.google.domain.com/some-path(包含请求体、头部等)

GCP接收此请求并转发至:

http://myonsitedomain.com/some-path(包含请求体、头部等)

是否有解决方案,还是我需要为此创建一个云函数?

英文:

I would like to send a request (https) to GCP get GCP to route that request to another (http) onsite endpoint

for example

request intiator: https://some.google.domain.com/some-path (contains body headers etc)

GCP receives this request and forward to

http://myonsitedomain.com/some-path (contains body headers etc)

Is there a solution for this or do I have to create a cloud function for this?

答案1

得分: 1

外部HTTP(S)负载均衡是一种基于代理的第7层负载均衡器,允许您在单个外部IP地址后运行和扩展您的服务。外部HTTP(S)负载均衡将HTTP和HTTPS流量分发到托管在各种Google Cloud平台上的后端(如Compute Engine、Google Kubernetes Engine(GKE)、Cloud Storage等),以及通过互联网或混合连接连接的外部后端。使用这个外部负载均衡器,您可以解决您的问题,更多信息请参考源链接(源自:GCP文档)。

英文:

External HTTP(S) Load Balancing is a proxy-based Layer 7 load balancer that enables you to run and scale your services behind a single external IP address. External HTTP(S) Load Balancing distributes HTTP and HTTPS traffic to backends hosted on a variety of Google Cloud platforms (such as Compute Engine, Google Kubernetes Engine (GKE), Cloud Storage, and so on), as well as external backends connected over the internet or via hybrid connectivity. Using this external load balancer you can resolve your issue, follow the source link for more information (source: GCP documentation)

huangapple
  • 本文由 发表于 2023年1月9日 14:18:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75053755.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定