Skip to content

Commit

Permalink
fix config require-backend-tls
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Apr 11, 2024
1 parent 42ac804 commit b632c5e
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 @@ -84,12 +84,6 @@ Configuration for SQL port.
+ Possible values: ``, `v2`
+ Enable the [PROXY protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) on the port. By enabling the PROXY protocol, TiProxy can pass the real client IP address to TiDB. `v2` indicates using the PROXY protocol version 2, and `` indicates disabling the PROXY protocol. If the PROXY protocol is enabled on TiProxy, you need to also enable the [PROXY protocol](/tidb-configuration-file.md#proxy-protocol) on the TiDB server.

#### `require-backend-tls`

+ Default value: `true`
+ Support hot-reload: yes, but only for new connections
+ Require TLS between TiProxy and TiDB servers. If the TiDB server doesn't support TLS, clients will report an error when connecting to TiProxy.

### api

Configurations for HTTP gateway.
Expand Down Expand Up @@ -194,6 +188,12 @@ For server TLS object:

A client TLS object. It is used to access TiDB or PD.

#### `require-backend-tls`

+ Default value: `false`
+ Support hot-reload: yes, but only for new connections
+ Require TLS between TiProxy and TiDB servers. If the TiDB server doesn't support TLS, clients will report an error when connecting to TiProxy.

#### `sql-tls`

A client TLS object. It is used to access TiDB SQL port (4000).
Expand Down

0 comments on commit b632c5e

Please sign in to comment.