listeners:
- address: tcp://127.0.0.1:12345
filters:
- name: http_connection_manager
type: read
config:
codec_type: http1
stat_prefix: egress_http
route_config:
virtual_hosts:
- name: local_service
domains: ["www.google.com"]
routes:
- prefix: "/"
timeout_ms: 0
cluster: service_google
filters:
- { type: decoder, name: router, config: {} }
admin:
access_log_path: /tmp/admin_access.log
address: tcp://127.0.0.1:19901
cluster_manager:
clusters:
- name: service_google
connect_timeout_ms: 250
type: logical_dns
lb_type: round_robin
hosts: [{ url: tcp://www.google.com:80 }]
$ nc 127.0.0.1 12345
GET /generate_204 HTTP/1.1
Host: www.google.com:12345
HTTP/1.1 404 Not Found
date: Thu, 19 Oct 2017 23:43:09 GMT
server: envoy
content-length: 0
GET /generate_204 HTTP/1.1
Host: www.google.com
HTTP/1.1 204 No Content
content-length: 0
date: Thu, 19 Oct 2017 23:43:20 GMT
x-envoy-upstream-service-time: 2
server: envoy
--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/5fea25d7-b45c-4fea-8372-d6ff0f21a157%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.