improve handling of mysql ssl options

This commit is contained in:
Robin Appelman 2021-08-03 17:23:44 +02:00
commit 4b8c9530fb
6 changed files with 226 additions and 20 deletions

View file

@ -0,0 +1,21 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'db.example.com',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
],
'dbdriveroptions' => [
\PDO::MYSQL_ATTR_SSL_KEY => '/ssl-key.pem',
\PDO::MYSQL_ATTR_SSL_CERT => '/ssl-cert.pem',
\PDO::MYSQL_ATTR_SSL_CA => '/ca-cert.pem',
\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
],
];