@@ -31,20 +31,31 @@ public final class DatabaseSettings implements SettingsHolder {
31
31
public static final Property <String > MYSQL_PORT =
32
32
newProperty ("DataSource.mySQLPort" , "3306" );
33
33
34
- @ Comment ("Connect to MySQL database over SSL" )
34
+ @ Comment ({"Replacement of Mysql's useSsl (for MariaDB only)." ,
35
+ "- disable: No SSL" ,
36
+ "- trust: Trust blindly (no validation)" ,
37
+ "- verify_ca: Encryption, certificates validation, BUT no hostname verification" ,
38
+ "- verify_full: Encryption, certificate validation and hostname validation" ,
39
+ "Read more: https://bit.ly/mariadb-sslmode" })
40
+ public static final Property <String > MARIADB_SSL_MODE =
41
+ newProperty ("DataSource.MariaDbSslMode" , "disabled" );
42
+
43
+ @ Comment ({"Connect to MySQL database over SSL" ,
44
+ "If you're using MariaDB, use sslMode instead" })
35
45
public static final Property <Boolean > MYSQL_USE_SSL =
36
46
newProperty ("DataSource.mySQLUseSSL" , true );
37
47
38
48
@ Comment ({"Verification of server's certificate." ,
39
49
"We would not recommend to set this option to false." ,
40
50
"Set this option to false at your own risk if and only if you know what you're doing" })
41
51
public static final Property <Boolean > MYSQL_CHECK_SERVER_CERTIFICATE =
42
- newProperty ( "DataSource.mySQLCheckServerCertificate" , true );
52
+ newProperty ( "DataSource.mySQLCheckServerCertificate" , true );
43
53
44
54
@ Comment ({"Authorize client to retrieve RSA server public key." ,
45
- "Advanced option, ignore if you don't know what it means." })
55
+ "Advanced option, ignore if you don't know what it means." ,
56
+ "If you are using MariaDB, use MariaDbSslMode instead." })
46
57
public static final Property <Boolean > MYSQL_ALLOW_PUBLIC_KEY_RETRIEVAL =
47
- newProperty ( "DataSource.mySQLAllowPublicKeyRetrieval" , true );
58
+ newProperty ( "DataSource.mySQLAllowPublicKeyRetrieval" , true );
48
59
49
60
@ Comment ("Username to connect to the MySQL database" )
50
61
public static final Property <String > MYSQL_USERNAME =
0 commit comments