@@ -31,20 +31,31 @@ public final class DatabaseSettings implements SettingsHolder {
3131 public static final Property <String > MYSQL_PORT =
3232 newProperty ("DataSource.mySQLPort" , "3306" );
3333
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" })
3545 public static final Property <Boolean > MYSQL_USE_SSL =
3646 newProperty ("DataSource.mySQLUseSSL" , true );
3747
3848 @ Comment ({"Verification of server's certificate." ,
3949 "We would not recommend to set this option to false." ,
4050 "Set this option to false at your own risk if and only if you know what you're doing" })
4151 public static final Property <Boolean > MYSQL_CHECK_SERVER_CERTIFICATE =
42- newProperty ( "DataSource.mySQLCheckServerCertificate" , true );
52+ newProperty ( "DataSource.mySQLCheckServerCertificate" , true );
4353
4454 @ 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." })
4657 public static final Property <Boolean > MYSQL_ALLOW_PUBLIC_KEY_RETRIEVAL =
47- newProperty ( "DataSource.mySQLAllowPublicKeyRetrieval" , true );
58+ newProperty ( "DataSource.mySQLAllowPublicKeyRetrieval" , true );
4859
4960 @ Comment ("Username to connect to the MySQL database" )
5061 public static final Property <String > MYSQL_USERNAME =
0 commit comments