aboutsummaryrefslogtreecommitdiff
path: root/config.default.php
diff options
context:
space:
mode:
Diffstat (limited to 'config.default.php')
-rw-r--r--config.default.php56
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.