From 9a048e4fde152f6b964b18c142ed6a25b7ccee4e Mon Sep 17 00:00:00 2001 From: memorz Date: Sat, 29 Feb 2020 14:46:44 +0800 Subject: [PATCH] add config description add config description --- docs/authenticator.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/authenticator.md b/docs/authenticator.md index 4217b86d..d01fdf62 100644 --- a/docs/authenticator.md +++ b/docs/authenticator.md @@ -1,6 +1,6 @@ # Authenticator -Trojan servers can authenticate users according to not only passwords in the config file but also entries in a MySQL (MariaDB) database. To turn this functionality on, set `enabled` field in the MySQL config to `true` and correctly configure the server address and credentials, etc: +Trojan servers can authenticate users according to not only passwords in the config file but also entries in a MySQL (MariaDB) database. To turn this functionality on, set `enabled` field in the MySQL config to `true` and correctly configure the server address and credentials,if you enable ssl connect to database you need fill the cafile(sure you can use 3rd-party trusted ca file in debian just like this "cafile":"/etc/ssl/certs/ca-certificates.crt", https://mariadb.com/kb/en/certificate-creation-with-openssl/#creating-a-certificate-authority-private-key-and-certificate) and tls_version(if have many tls version you need seprate them with comma like this "tls_version":"TLSv1.2,TLSv1.3"), etc: ```json "mysql": { @@ -9,7 +9,9 @@ Trojan servers can authenticate users according to not only passwords in the con "server_port": 3306, "database": "trojan", "username": "trojan", - "password": "" + "password": "", + "cafile": "", + "tls_version": "" } ```