protocol
field either to tcp
or tls
. In the case of TLS, you can also specify a certificate
field with a certificate ID or path to it.
Similar to the above, the proxy target scheme should be set to tcp://
or tls://
, depending if your upstream is secured by TLS or not.
The simplest TCP API definition looks like this:
tcp
, tls
, http
or https
.
If Tyk sits behind another proxy, which has the PROXY protocol enabled, you can set enable_proxy_protocol
to true
.
As for features such as load balancing, service discovery, Mutual TLS (both authorization and communication with upstream), certificate pinning, etc. All work exactly the same way as for your HTTP APIs.
tyk.conf
:
ranges
or ports
directives (or combine them).
You can also disable this behavior and allow any TCP port by setting disable_ports_whitelist
to true
.
send
send string to serverexpect
expect string from the server