|
|
|
@ -34,7 +34,7 @@ option (udpa.annotations.file_status).package_version_status = NEXT_MAJOR_VERSIO |
|
|
|
|
// HTTP connection manager :ref:`configuration overview <config_http_conn_man>`. |
|
|
|
|
// [#extension: envoy.filters.network.http_connection_manager] |
|
|
|
|
|
|
|
|
|
// [#next-free-field: 42] |
|
|
|
|
// [#next-free-field: 43] |
|
|
|
|
message HttpConnectionManager { |
|
|
|
|
option (udpa.annotations.versioning).previous_message_type = |
|
|
|
|
"envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager"; |
|
|
|
@ -544,13 +544,25 @@ message HttpConnectionManager { |
|
|
|
|
// coded in Envoy, the response content type is plain text. |
|
|
|
|
LocalReplyConfig local_reply_config = 38; |
|
|
|
|
|
|
|
|
|
// Determines if the port part should be removed from host/authority header before any processing |
|
|
|
|
// of request by HTTP filters or routing. The port would be removed only if it is equal to the :ref:`listener's<envoy_api_field_config.listener.v4alpha.Listener.address>` |
|
|
|
|
// local port and request method is not CONNECT. This affects the upstream host header as well. |
|
|
|
|
// Without setting this option, incoming requests with host `example:443` will not match against |
|
|
|
|
// route with :ref:`domains<envoy_api_field_config.route.v4alpha.VirtualHost.domains>` match set to `example`. Defaults to `false`. Note that port removal is not part |
|
|
|
|
// of `HTTP spec <https://tools.ietf.org/html/rfc3986>`_ and is provided for convenience. |
|
|
|
|
bool strip_matching_host_port = 39; |
|
|
|
|
oneof strip_port_mode { |
|
|
|
|
// Determines if the port part should be removed from host/authority header before any processing |
|
|
|
|
// of request by HTTP filters or routing. The port would be removed only if it is equal to the :ref:`listener's<envoy_api_field_config.listener.v4alpha.Listener.address>` |
|
|
|
|
// local port and request method is not CONNECT. This affects the upstream host header as well. |
|
|
|
|
// Without setting this option, incoming requests with host `example:443` will not match against |
|
|
|
|
// route with :ref:`domains<envoy_api_field_config.route.v4alpha.VirtualHost.domains>` match set to `example`. Defaults to `false`. Note that port removal is not part |
|
|
|
|
// of `HTTP spec <https://tools.ietf.org/html/rfc3986>`_ and is provided for convenience. |
|
|
|
|
// Only one of `strip_matching_host_port` or `strip_any_host_port` can be set. |
|
|
|
|
bool strip_matching_host_port = 39; |
|
|
|
|
|
|
|
|
|
// Determines if the port part should be removed from host/authority header before any processing |
|
|
|
|
// of request by HTTP filters or routing. The port would be removed only if request method is not CONNECT. |
|
|
|
|
// This affects the upstream host header as well. |
|
|
|
|
// Without setting this option, incoming requests with host `example:443` will not match against |
|
|
|
|
// route with :ref:`domains<envoy_api_field_config.route.v4alpha.VirtualHost.domains>` match set to `example`. Defaults to `false`. Note that port removal is not part |
|
|
|
|
// of `HTTP spec <https://tools.ietf.org/html/rfc3986>`_ and is provided for convenience. |
|
|
|
|
// Only one of `strip_matching_host_port` or `strip_any_host_port` can be set. |
|
|
|
|
bool strip_any_host_port = 42; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Governs Envoy's behavior when receiving invalid HTTP from downstream. |
|
|
|
|
// If this option is false (default), Envoy will err on the conservative side handling HTTP |
|
|
|
|