Skip to content

Commit

Permalink
tiproxy: fix config require-backend-tls (pingcap#17081)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Apr 11, 2024
1 parent e792eda commit ea52d30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tiproxy/tiproxy-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ SQL 端口的配置。
+ 可选值:``, `v2`
+ 在 SQL 端口启用 [PROXY 协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)。开启 PROXY 协议后能让 TiProxy 透传客户端真实的 IP 地址给 TiDB。`v2` 代表使用 PROXY 协议 v2 版本,`` 代表不使用 PROXY 协议。在 TiProxy 启用 PROXY 协议后,需要同时在 TiDB 服务器上启用 [PROXY 协议](/tidb-configuration-file.md#proxy-protocol)

#### `require-backend-tls`

+ 默认值:`true`
+ 支持热加载:是,但只对新连接有效
+ 要求 TiProxy 和 TiDB 服务器之间使用 TLS 连接。如果 TiDB 服务器不支持 TLS,则客户端在连接到 TiProxy 时会报错。

### api

HTTP 网关的配置。
Expand Down Expand Up @@ -195,6 +189,12 @@ TLS 对象字段:

客户端 TLS 对象。用于访问 TiDB 或 PD。

#### `require-backend-tls`

+ 默认值:`false`
+ 支持热加载:是,但只对新连接有效
+ 要求 TiProxy 和 TiDB 服务器之间使用 TLS 连接。如果 TiDB 服务器不支持 TLS,则客户端在连接到 TiProxy 时会报错。

#### `sql-tls`

客户端 TLS 对象。用于访问 TiDB SQL 端口(4000)。
Expand Down

0 comments on commit ea52d30

Please sign in to comment.