Created
January 6, 2019 12:43
-
-
Save yindia/ee581ff05f31c2d5da329a761d176a50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
listeners: | |
- address: tcp://0.0.0.0:9999 | |
use_original_dst: true | |
filters: | |
- type: read | |
name: http_connection_manager | |
config: | |
codec_type: auto | |
stat_prefix: ingress_http | |
access_log: | |
- path: "/tmp/access_log" | |
route_config: | |
virtual_hosts: | |
- name: api_gateway | |
domains: | |
- "*" | |
routes: | |
- prefix: "/service" | |
cluster: httpbin | |
auto_host_rewrite: true | |
prefix_rewrite: "/" | |
- prefix: "/auth" | |
cluster: httpbin | |
auto_host_rewrite: true | |
prefix_rewrite: "/" | |
filters: | |
- type: decoder | |
name: extauth | |
config: | |
cluster: auth | |
timeout_ms: 5000 | |
- type: decoder | |
name: router | |
config: {} | |
admin: | |
access_log_path: "/dev/null" | |
profile_path: "{{ test_tmpdir }}/envoy.prof" | |
address: tcp://127.0.0.1:0 | |
cluster_manager: | |
clusters: | |
- name: httpbin | |
type: logical_dns | |
connect_timeout_ms: 5000 | |
lb_type: random | |
hosts: | |
- url: tcp://httpbin.org:80 | |
- name: auth | |
type: logical_dns | |
connect_timeout_ms: 5000 | |
lb_type: random | |
hosts: | |
- url: tcp://docker.for.mac.localhost:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment