diff --git a/envoy/api/v2/route/route.proto b/envoy/api/v2/route/route.proto index 24c5f1f6..ef7d03be 100644 --- a/envoy/api/v2/route/route.proto +++ b/envoy/api/v2/route/route.proto @@ -771,8 +771,16 @@ message RouteAction { } message RedirectAction { + oneof scheme_rewrite_specifier { + // The scheme portion of the URL will be swapped with "https". + bool https_redirect = 4; + // The scheme portion of the URL will be swapped with this value. + string scheme_redirect = 7; + } // The host portion of the URL will be swapped with this value. string host_redirect = 1; + // The port value of the URL will be swapped with this value. + uint32 port_redirect = 8; oneof path_rewrite_specifier { // The path portion of the URL will be swapped with this value. @@ -810,9 +818,6 @@ message RedirectAction { // code is MOVED_PERMANENTLY (301). RedirectResponseCode response_code = 3 [(validate.rules).enum.defined_only = true]; - // The scheme portion of the URL will be swapped with "https". - bool https_redirect = 4; - // Indicates that during redirection, the query portion of the URL will // be removed. Default value is false. bool strip_query = 6;