proxy
The proxy configurations in Network Filter.
proxy is the most common network filter in MOSN and is configured in the following format:
{
"downstream_protocol":"",
"upstream_protocol":"",
"router_config_name":"",
"extend_config":{}
}
downstream_protocol
: The request protocol that the proxy expects to receive. When receiving data from a connection, MOSN uses this protocol to parse and forward packets. If the received packet protocol does not comply with the configuration, MOSN closes the connection.upstream_protocol
: The protocol used by the proxy to forward data. Usually, this field needs to be consistent withdownstream_protocol
. Protocol conversion is performed only in special scenarios.router_config_name
: The router configuration index of the proxy. Usually, this field is consistent withrouter_config_name
configured inconnection_manager
of the listener.extend_config
: The extension configuration, used only inXProtocol
of MOSN currently.
Last modified October 28, 2022: docs: Changes to the v1.2.0 configuration (#217) (d237414)