aboutsummaryrefslogtreecommitdiff
path: root/config.default.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-05 15:48:03 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-05 15:48:03 +0200
commit77afd1393e461a20d6d04c07dea0756e792636d5 (patch)
treee0d0f90288cd505edca30332f2f35a87c262aa50 /config.default.php
parent38932ee3bb3ccd41c0e2d79329e2d77fb5995256 (diff)
Add optional database connection URI parameters (#2552)
#fix https://github.com/FreshRSS/FreshRSS/issues/2549
Diffstat (limited to 'config.default.php')
-rw-r--r--config.default.php25
1 files changed, 15 insertions, 10 deletions
diff --git a/config.default.php b/config.default.php
index a38a9372a..d885a8dea 100644
--- a/config.default.php
+++ b/config.default.php
@@ -123,33 +123,38 @@ return array(
//CURLOPT_PROXYUSERPWD => 'user:password',
),
- 'db' => array(
+ 'db' => [
- # Type of database: `sqlite` or `mysql`.
+ # Type of database: `sqlite` or `mysql` or 'pgsql'
'type' => 'sqlite',
- # MySQL host.
+ # Database server
'host' => 'localhost',
- # MySQL user.
+ # Database user
'user' => '',
- # MySQL password.
+ # Database password
'password' => '',
- # MySQL database.
+ # Database name
'base' => '',
- # MySQL table prefix.
+ # Tables prefix (useful if you use the same database for multiple things)
'prefix' => 'freshrss_',
- 'pdo_options' => array(
+ # Additional connection string parameters, such as PostgreSQL 'sslmode=??;sslrootcert=??'
+ # https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
+ 'connection_uri_params' => '',
+
+ # Additional PDO parameters, such as offered by MySQL https://php.net/ref.pdo-mysql
+ 'pdo_options' => [
//PDO::MYSQL_ATTR_SSL_KEY => '/path/to/client-key.pem',
//PDO::MYSQL_ATTR_SSL_CERT => '/path/to/client-cert.pem',
//PDO::MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.pem',
- ),
+ ],
- ),
+ ],
# Configure the default feeds to which users will automatically be subscribed.
'default_feeds' => array(