diff options
| author | 2019-10-31 18:15:47 +0100 | |
|---|---|---|
| committer | 2019-10-31 18:15:47 +0100 | |
| commit | 3aa66f317b496ccd9a2df914bbc747c52081a7ad (patch) | |
| tree | 6a3f3f74899801abdca00546e213dfdc141c53cf /config.default.php | |
| parent | 82611c9622ed23b0e9fcf5f9f651ddffa1fd7706 (diff) | |
| parent | fcae48f313d399050cb15f37a8a73ae52fc67796 (diff) | |
Merge pull request #2599 from FreshRSS/dev1.15.0
FreshRSS 1.15
Diffstat (limited to 'config.default.php')
| -rw-r--r-- | config.default.php | 56 |
1 files changed, 48 insertions, 8 deletions
diff --git a/config.default.php b/config.default.php index 49f0cf1af..d885a8dea 100644 --- a/config.default.php +++ b/config.default.php @@ -33,6 +33,13 @@ return array( # Name of the user that has administration rights. 'default_user' => '_', + # Force users to validate their email address. If `true`, an email with a + # validation URL is sent during registration, and users cannot access their + # feed if they didn't access this URL. + # Note: it is recommended to not enable it with PHP < 5.5 (emails cannot be + # sent). + 'force_email_validation' => false, + # Allow or not visitors without login to see the articles # of the default user. 'allow_anonymous' => false, @@ -116,32 +123,65 @@ 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( + array( + 'url' => 'https://github.com/FreshRSS/FreshRSS/releases.atom', + 'name' => 'FreshRSS releases', + 'website' => 'https://github.com/FreshRSS/FreshRSS/', + 'description' => 'FreshRSS releases @ GitHub', ), + ), + # Configuration to send emails. Be aware that PHP < 5.5 are not supported. + # These options are basically a mapping of the PHPMailer class attributes + # from the PHPMailer library. + # + # See http://phpmailer.github.io/PHPMailer/classes/PHPMailer.PHPMailer.PHPMailer.html#properties + 'mailer' => 'mail', // 'mail' or 'smtp' + 'smtp' => array( + 'hostname' => '', // the domain used in the Message-ID header + 'host' => 'localhost', // the SMTP server address + 'port' => 25, + 'auth' => false, + 'auth_type' => '', // 'CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2' or '' + 'username' => '', + 'password' => '', + 'secure' => '', // '', 'ssl' or 'tls' + 'from' => 'root@localhost', ), # List of enabled FreshRSS extensions. |
