|
|
|
@ -24,8 +24,32 @@ message FilterConfig { |
|
|
|
|
|
|
|
|
|
// Per route Configuration for the dynamic forward proxy HTTP filter. |
|
|
|
|
message PerRouteConfig { |
|
|
|
|
// Indicates that before DNS lookup, the host header will be swapped with |
|
|
|
|
// this value. If not set or empty, the original host header value |
|
|
|
|
// will be used and no rewrite will happen. |
|
|
|
|
string host_rewrite = 1; |
|
|
|
|
oneof host_rewrite_specifier { |
|
|
|
|
// Indicates that before DNS lookup, the host header will be swapped with |
|
|
|
|
// this value. If not set or empty, the original host header value |
|
|
|
|
// will be used and no rewrite will happen. |
|
|
|
|
// |
|
|
|
|
// Note: this rewrite affects both DNS lookup and host header forwarding. However, this |
|
|
|
|
// option shouldn't be used with |
|
|
|
|
// :ref:`HCM host rewrite <envoy_api_field_api.v3alpha.route.RouteAction.host_rewrite>` given |
|
|
|
|
// that the value set here would be used for DNS lookups whereas the value set in the HCM would |
|
|
|
|
// be used for host header forwarding which is not the desired outcome. |
|
|
|
|
// |
|
|
|
|
// [#next-major-version: host_rewrite_literal] |
|
|
|
|
string host_rewrite = 1; |
|
|
|
|
|
|
|
|
|
// Indicates that before DNS lookup, the host header will be swapped with |
|
|
|
|
// the value of this header. If not set or empty, the original host header |
|
|
|
|
// value will be used and no rewrite will happen. |
|
|
|
|
// |
|
|
|
|
// Note: this rewrite affects both DNS lookup and host header forwarding. However, this |
|
|
|
|
// option shouldn't be used with |
|
|
|
|
// :ref:`HCM host rewrite header |
|
|
|
|
// <envoy_api_field_api.v3alpha.route.RouteAction.auto_host_rewrite_header>` given that the |
|
|
|
|
// value set here would be used for DNS lookups whereas the value set in the HCM would be used |
|
|
|
|
// for host header forwarding which is not the desired outcome. |
|
|
|
|
// |
|
|
|
|
// [#next-major-version: host_rewrite_header] |
|
|
|
|
string auto_host_rewrite_header = 2; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|