Files
MaxScale/Documentation/Tutorials/Configuring-Servers.md
Markus Mäkelä cb96725a51 MXS-2382: Add TLS setup into server tutorial
Given the recent fixes to the TLS configuration, the process of enabling
TLS is rather simple.
2020-02-17 20:15:43 +02:00

41 lines
1006 B
Markdown

# Configuring Servers
The first step is to define the servers that make up the cluster. These servers
will be used by the services and are monitored by the monitor.
```
[dbserv1]
type=server
address=192.168.2.1
port=3306
protocol=MariaDBBackend
[dbserv2]
type=server
address=192.168.2.2
port=3306
protocol=MariaDBBackend
[dbserv3]
type=server
address=192.168.2.3
port=3306
protocol=MariaDBBackend
```
The `address` and `port` parameters tell where the server is located. The
`protocol` should always be set to `MariaDBBackend`.
## Enabling TLS
To enable encryption for the MaxScale-to-MariaDB communication, add `ssl=true`
to the server section. To enable server certificate verification, add
`ssl_verify_peer_certificate=true`.
The `ssl` and `ssl_verify_peer_certificate` parameters are similar to the
`--ssl` and `--ssl-verify-server-cert` options of the `mysql` command line
client.
For more information about TLS, refer to the
[Configuration Guide](../Getting-Started/Configuration-Guide.md).