.. _configuration_server_sni_proxy: sni_proxy ========= A tcp forward proxy server based on TLS SNI / HTTP Host. 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 ` request_wait_timeout -------------------- **optional**, **type**: :ref:`humanize duration ` Set the timeout value for the wait of initial client data. **default**: 60s request_recv_timeout -------------------- **optional**, **type**: :ref:`humanize duration ` Set the timeout value for the receive of the complete initial request after the arriving of initial data, which may be a TLS ClientHello message or a HTTP Request. **default**: 4s protocol_inspection ------------------- **optional**, **type**: :ref:`protocol inspection ` Set basic config for protocol inspection. **default**: set with default value .. versionadded:: 1.7.0 server_tcp_portmap ------------------ **optional**, **type**: :ref:`server tcp portmap ` Set the portmap for protocol inspection based on server side tcp port. **default**: set with default value .. versionadded:: 1.7.0 client_tcp_portmap ------------------ **optional**, **type**: :ref:`client tcp portmap ` Set the portmap for protocol inspection based on client side tcp port. **default**: set with default value .. versionadded:: 1.7.0 allowed_hosts ------------- **optional**, **type**: :ref:`host matched object ` <:ref:`host `> Set the list of hosts we should handle based on host match rules. If not set, all requests will be handled. Example: .. code-block:: yaml hosts: - exact_match: - www.example.net - example.net redirect_host: www.example.net:443 # all redirect to www.example.net:* - child_match: example.org # pass all *.example.org:* **default**: not set .. versionadded:: 1.1.1 .. _configuration_server_sni_proxy_host: Host ^^^^ .. versionadded:: 1.1.1 This set the config for a SNI host. redirect_host """"""""""""" **optional**, **type**: :ref:`host ` Change the host field of the upstream address. **default**: not set redirect_port """"""""""""" **optional**, **type**: u16 Change the port field of the upstream address. **default**: not set