.. _configuration_server_tcp_stream: tcp_stream ========== A simple tcp stream server. Map local tcp port to remote tcp port. The following common keys are supported: * :ref:`escaper ` * :ref:`auditor ` * :ref:`shared_logger ` * :ref:`listen ` * :ref:`listen_in_worker ` * :ref:`tcp_sock_speed_limit ` * :ref:`ingress_network_filter ` * :ref:`tcp_copy_buffer_size ` * :ref:`tcp_copy_yield_size ` * :ref:`tcp_misc_opts ` * :ref:`task_idle_check_duration ` * :ref:`task_idle_max_count ` * :ref:`extra_metrics_tags ` upstream -------- **required**, **type**: :ref:`upstream str ` | seq Set the remote address(es) and port. The *port* field is always required. For *seq* value, each of its element must be :ref:`weighted upstream addr `. **alias**: proxy_pass .. versionchanged:: 1.5.3 Allow set multiple upstream addresses. upstream_pick_policy ---------------------- **optional**, **type**: :ref:`selective pick policy ` Set the policy to select upstream address. The key for rendezvous/jump hash is **. **default**: random .. versionadded:: 1.5.3 tls_client ---------- **optional**, **type**: bool | :ref:`openssl tls client config ` Set if we should do tls handshake with upstream. **default**: disabled upstream_tls_name ----------------- **optional**, **type**: :ref:`tls name ` Set an explicit tls server name to do upstream tls certificate verification. If not set, the host of upstream address will be used. .. note:: IP address is not supported by now **default**: not set