linkerd / linkerd-examples

Examples of how to configure and run linkerd
https://linkerd.io
Apache License 2.0
432 stars 221 forks source link

[Example] HTTP/HTTPS Proxy to external public websites? #249

Closed gaby closed 5 years ago

gaby commented 5 years ago

After following the HTTP Proxy, I decided to try creating a proxy to an external website but nothing seems to work...

Example configuration:

admin:
  ip: 0.0.0.0
  port: 9990

routers:
- protocol: http
  dtab: /svc/webapp => /$/inet/xip.io/80
  servers:
  - ip: 0.0.0.0
    port: 8080
http_proxy=http://localhost:8080 curl http://svc/
results in: unable to stablish connection. 

I just want to create a simple HTTP proxy on http://localhost/svc to http://xip.io

Could someone provide examples on how to do HTTP/HTTPS proxies to external public websites? For ex: Google.com, Xip.io, Docker.io ?