LibertyBans icon indicating copy to clipboard operation
LibertyBans copied to clipboard

add ssl support

Open Playsus1234 opened this issue 1 year ago • 3 comments

I have confirmed that ...

  • [X] There is no duplicate feature request.

Description

add ssl support

Playsus1234 avatar Jun 09 '24 09:06 Playsus1234

Hello! LibertyBans already supports SSL, however it is not enabled by default. To enable it, you'll have to enable it both on the server, and on the side of LibertyBans. Here is how you do it in LibertyBans: Start by editing the sql.yml file. Look for the key that has the same name as the database as you are using, either mariadb or postgresl currently. Under any of these keys, please look for the connection-properties configuration list. Here, you may add any options specified by the JDBC connector used for the database.

For as an example, for MariaDB the connection properties are specified here, for PostgreSQL here.

To change the behavior of SSL for MariaDB, consider looking at the sslMode option. For PostgreSQL, this would be ssl. Of course these options alone aren't enough to configure a proper connection, please see the documentation for each option.

Additionally, please see the guides to enable ssl for MariaDB, and for PostgreSQL respectively.

KoxSosen avatar Jul 10 '24 17:07 KoxSosen

I forgot to mention that the connection properties list configuration under postgresl applies to CockroachDB too, as per the comment in the configuration.

KoxSosen avatar Jul 10 '24 17:07 KoxSosen

As Simon mentioned, we give you the ability to change almost any connection property, including SSL settings. If you have more questions, feel free to post them. I'm going to close this issue for now -- you can still post if needed.

A248 avatar Jul 19 '24 10:07 A248