mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 16:44:09 +02:00
improve handling of mysql ssl options
This commit is contained in:
parent
d154bdd9f0
commit
4b8c9530fb
6 changed files with 226 additions and 20 deletions
21
tests/configs/mysql_ssl_ca.php
Normal file
21
tests/configs/mysql_ssl_ca.php
Normal 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 => true,
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue