You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/latest/stream-proxy.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,10 @@ APISIX can serve as a stream proxy, in addition to being an application layer pr
30
30
By default, stream proxy is disabled.
31
31
32
32
To enable this option, set `apisix.proxy_mode` to `stream` or `http&stream`, depending on whether you want stream proxy only or both http and stream. Then add the `apisix.stream_proxy` option in `conf/config.yaml` and specify the list of addresses where APISIX should act as a stream proxy and listen for incoming requests.
33
-
:::note
34
-
35
-
This "apisix.stream_proxy" option has only been added in versions after 3.2.1.
36
-
37
-
:::
38
33
39
34
```yaml
40
35
apisix:
36
+
proxy_mode: http&stream # enable both http and stream proxies
41
37
stream_proxy:
42
38
tcp:
43
39
- 9100# listen on 9100 ports of all network interfaces for TCP requests
@@ -115,6 +111,7 @@ Here is an example with MySQL:
115
111
116
112
```yaml
117
113
apisix:
114
+
proxy_mode: http&stream # enable both http and stream proxies
118
115
stream_proxy: # TCP/UDP proxy
119
116
tcp: # TCP proxy address list
120
117
- 9100# by default uses 0.0.0.0
@@ -182,6 +179,7 @@ First of all, we need to enable TLS for the TCP address:
182
179
183
180
```yaml
184
181
apisix:
182
+
proxy_mode: http&stream # enable both http and stream proxies
By setting the `scheme` to "tls", APISIX will do TLS handshake with the upstream.
241
+
By setting the `scheme` to `tls`, APISIX will do TLS handshake with the upstream.
244
242
245
-
When the client is also speaking TLS over TCP, the SNI from the client will pass through to the upstream. Otherwise, a dummy SNI "apisix_backend" will be used.
243
+
When the client is also speaking TLS over TCP, the SNI from the client will pass through to the upstream. Otherwise, a dummy SNI `apisix_backend` will be used.
0 commit comments