All Products
Search
Document Center

Alibaba Cloud Service Mesh:AllowConnect plug-in

Last Updated:Nov 04, 2024

By default, WebSocket over HTTP/2 is disabled in sidecar proxy. By enabling the AllowConnect plug-in in ASM, you can allow upgraded protocol connections, thereby supporting tunneling WebSocket over HTTP/2.

Configuration fields

Name

Data type

Required

Valid value

Description

patch_context

String

Optional

  • ANY: takes effect in all sidecar proxies and gateways.

  • SIDECAR_INBOUND: takes effect only in the inbound listener/router/cluster of sidecar proxies.

  • SIDECAR_OUTBOUND: takes effect only in the outbound listener/router/cluster of sidecar proxies.

  • GATEWAY: takes effect only in the ASM gateway.

Specifies the scenario in which the plug-in takes effect, based on traffic direction and workload type.

Sample configuration

For more information on using the WebSocket protocol in ASM, see Using the WebSocket protocol in ASM to access services. If you want to configure using WebSocket over HTTP/2 protocol, you need to enable this plug-in to allow upgraded protocol connections. We recommended that you configure the plug-in to ANY to allow upgraded protocol connections in all gateways and sidecar proxies.

patch_context: ANY