Skip to content

Instantly share code, notes, and snippets.

@mohak1712
Last active April 26, 2019 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohak1712/2de82c8d8c523ff964ab1a31c9b3f001 to your computer and use it in GitHub Desktop.
Save mohak1712/2de82c8d8c523ff964ab1a31c9b3f001 to your computer and use it in GitHub Desktop.
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match: { prefix: "/" }
route:
cluster: ping_pong_service
max_grpc_timeout: 0s
cors:
allow_origin:
- "*"
allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout
expose_headers: grpc-status,grpc-message
http_filters:
- name: envoy.grpc_web
- name: envoy.cors
- name: envoy.router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment