You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.2 KiB

  1. admin:
  2. access_log_path: "/dev/null"
  3. address:
  4. socket_address:
  5. address: 0.0.0.0
  6. port_value: 8001
  7. static_resources:
  8. listeners:
  9. - address:
  10. socket_address:
  11. address: 0.0.0.0
  12. port_value: 80
  13. filter_chains:
  14. - filters:
  15. - name: envoy.http_connection_manager
  16. config:
  17. codec_type: auto
  18. stat_prefix: ingress_http
  19. route_config:
  20. name: eshop_backend_route
  21. virtual_hosts:
  22. - name: eshop_backend
  23. domains:
  24. - "*"
  25. routes:
  26. - name: "m-short"
  27. match:
  28. prefix: "/m/"
  29. route:
  30. auto_host_rewrite: true
  31. prefix_rewrite: "/marketing-api/"
  32. cluster: marketing
  33. - name: "m-long"
  34. match:
  35. prefix: "/marketing-api/"
  36. route:
  37. auto_host_rewrite: true
  38. cluster: marketing
  39. http_filters:
  40. - name: envoy.router
  41. access_log:
  42. - name: envoy.file_access_log
  43. filter:
  44. not_health_check_filter: {}
  45. config:
  46. json_format:
  47. time: "%START_TIME%"
  48. protocol: "%PROTOCOL%"
  49. duration: "%DURATION%"
  50. request_method: "%REQ(:METHOD)%"
  51. request_host: "%REQ(HOST)%"
  52. path: "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
  53. response_flags: "%RESPONSE_FLAGS%"
  54. route_name: "%ROUTE_NAME%"
  55. upstream_host: "%UPSTREAM_HOST%"
  56. upstream_cluster: "%UPSTREAM_CLUSTER%"
  57. upstream_local_address: "%UPSTREAM_LOCAL_ADDRESS%"
  58. path: "/tmp/access.log"
  59. clusters:
  60. - name: marketing
  61. connect_timeout: 0.25s
  62. type: strict_dns
  63. lb_policy: round_robin
  64. hosts:
  65. - socket_address:
  66. address: marketing-api
  67. port_value: 80
  68. - name: locations
  69. connect_timeout: 0.25s
  70. type: strict_dns
  71. lb_policy: round_robin
  72. hosts:
  73. - socket_address:
  74. address: locations-api
  75. port_value: 80