docker
docker copied to clipboard
DB connection over TLS/SSL
Add support for connecting to MySQL DB over TLS/SSL, as a solution to #199. New variables added to support this option:
- DB_SSL
- MYSQL_ATTR_SSL_CA
Descriptions of the new variables added in the README
file.
Ended up implementing much simpler option than anticipated in #199, since the PHP app would either connect to the DB without TLS or with TLS and certificate verification. So the only options are to either turn on or off the connection over TLS and potentially to provide a custom CA certificate. MySQL server's certificate verification is always on when connection over TLS is on.