config.default.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. # Do not modify this file, which defines default values,
  3. # but edit `./data/config.php` instead, after the install process is completed.
  4. return array(
  5. # Set to `development` to get additional error messages,
  6. # or to `production` to get only the most important messages.
  7. 'environment' => 'production',
  8. # Used to make crypto more unique. Generated during install.
  9. 'salt' => '',
  10. # Specify address of the FreshRSS instance,
  11. # used when building absolute URLs, e.g. for WebSub.
  12. # Examples:
  13. # https://example.net/FreshRSS/p/
  14. # https://freshrss.example.net/
  15. 'base_url' => '',
  16. # Specify address of the FreshRSS auto-update server.
  17. 'auto_update_url' => 'https://update.freshrss.org',
  18. # Natural language of the user interface, e.g. `en`, `fr`.
  19. 'language' => 'en',
  20. # Title of this FreshRSS instance in the Web user interface.
  21. 'title' => 'FreshRSS',
  22. # Meta description used when `allow_robots` is true.
  23. 'meta_description' => '',
  24. # Name of the user that has administration rights.
  25. 'default_user' => '_',
  26. # Force users to validate their email address. If `true`, an email with a
  27. # validation URL is sent during registration, and users cannot access their
  28. # feed if they didn't access this URL.
  29. # Note: it is recommended to not enable it with PHP < 5.5 (emails cannot be
  30. # sent).
  31. 'force_email_validation' => false,
  32. # Allow or not visitors without login to see the articles
  33. # of the default user.
  34. 'allow_anonymous' => false,
  35. # Allow or not anonymous users to start the refresh process.
  36. 'allow_anonymous_refresh' => false,
  37. # Login method:
  38. # `none` is without password and shows only the default user;
  39. # `form` is a conventional Web login form;
  40. # `http_auth` is an access controled by the HTTP Web server (e.g. `/FreshRSS/p/i/.htaccess` for Apache)
  41. # if you use `http_auth`, remember to protect only `/FreshRSS/p/i/`,
  42. # and in particular not protect `/FreshRSS/p/api/` if you would like to use the API (different login system).
  43. 'auth_type' => 'form',
  44. # Allow or not the use of the API, used for mobile apps.
  45. # End-point is https://freshrss.example.net/api/greader.php
  46. # You need to set the user's API password.
  47. 'api_enabled' => false,
  48. # Allow or not the use of an unsafe login,
  49. # by providing username and password in the login URL:
  50. # http://example.net/FreshRSS/p/i/?c=auth&a=login&u=alice&p=1234
  51. 'unsafe_autologin_enabled' => false,
  52. # Enable or not the use of syslog to log the activity of
  53. # SimplePie, which is retrieving RSS feeds via HTTP requests.
  54. 'simplepie_syslog_enabled' => true,
  55. # Enable or not support of PubSubHubbub.
  56. # /!\ It should NOT be enabled if base_url is not reachable by an external server.
  57. 'pubsubhubbub_enabled' => false,
  58. # Allow or not Web robots (e.g. search engines) in HTML headers.
  59. 'allow_robots' => false,
  60. # If true does nothing, if false restricts HTTP Referer via: meta referrer origin
  61. 'allow_referrer' => false,
  62. 'limits' => array(
  63. # Duration in seconds of the login cookie.
  64. 'cookie_duration' => 2592000,
  65. # Duration in seconds of the SimplePie cache,
  66. # during which a query to the RSS feed will return the local cached version.
  67. # Especially important for multi-user setups.
  68. 'cache_duration' => 800,
  69. # SimplePie HTTP request timeout in seconds.
  70. 'timeout' => 15,
  71. # If a user has not used FreshRSS for more than x seconds,
  72. # then its feeds are not refreshed anymore.
  73. 'max_inactivity' => PHP_INT_MAX,
  74. # Max number of feeds for a user.
  75. 'max_feeds' => 16384,
  76. # Max number of categories for a user.
  77. 'max_categories' => 16384,
  78. # Max number of accounts that anonymous users can create
  79. # 0 for an unlimited number of accounts
  80. # 1 is to not allow user registrations (1 is corresponding to the admin account)
  81. 'max_registrations' => 1,
  82. ),
  83. # Options used by cURL when making HTTP requests, e.g. when the SimplePie library retrieves feeds.
  84. # http://php.net/manual/function.curl-setopt
  85. 'curl_options' => array(
  86. # Options to disable SSL/TLS certificate check (e.g. for self-signed HTTPS)
  87. //CURLOPT_SSL_VERIFYHOST => 0,
  88. //CURLOPT_SSL_VERIFYPEER => false,
  89. # Options to use a proxy for retrieving feeds.
  90. //CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  91. //CURLOPT_PROXY => '127.0.0.1',
  92. //CURLOPT_PROXYPORT => 8080,
  93. //CURLOPT_PROXYAUTH => CURLAUTH_BASIC,
  94. //CURLOPT_PROXYUSERPWD => 'user:password',
  95. ),
  96. 'db' => [
  97. # Type of database: `sqlite` or `mysql` or 'pgsql'
  98. 'type' => 'sqlite',
  99. # Database server
  100. 'host' => 'localhost',
  101. # Database user
  102. 'user' => '',
  103. # Database password
  104. 'password' => '',
  105. # Database name
  106. 'base' => '',
  107. # Tables prefix (useful if you use the same database for multiple things)
  108. 'prefix' => 'freshrss_',
  109. # Additional connection string parameters, such as PostgreSQL 'sslmode=??;sslrootcert=??'
  110. # https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
  111. 'connection_uri_params' => '',
  112. # Additional PDO parameters, such as offered by MySQL https://php.net/ref.pdo-mysql
  113. 'pdo_options' => [
  114. //PDO::MYSQL_ATTR_SSL_KEY => '/path/to/client-key.pem',
  115. //PDO::MYSQL_ATTR_SSL_CERT => '/path/to/client-cert.pem',
  116. //PDO::MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.pem',
  117. ],
  118. ],
  119. # Configure the default feeds to which users will automatically be subscribed.
  120. 'default_feeds' => array(
  121. array(
  122. 'url' => 'https://github.com/FreshRSS/FreshRSS/releases.atom',
  123. 'name' => 'FreshRSS releases',
  124. 'website' => 'https://github.com/FreshRSS/FreshRSS/',
  125. 'description' => 'FreshRSS releases @ GitHub',
  126. ),
  127. ),
  128. # Configuration to send emails. Be aware that PHP < 5.5 are not supported.
  129. # These options are basically a mapping of the PHPMailer class attributes
  130. # from the PHPMailer library.
  131. #
  132. # See http://phpmailer.github.io/PHPMailer/classes/PHPMailer.PHPMailer.PHPMailer.html#properties
  133. 'mailer' => 'mail', // 'mail' or 'smtp'
  134. 'smtp' => array(
  135. 'hostname' => '', // the domain used in the Message-ID header
  136. 'host' => 'localhost', // the SMTP server address
  137. 'port' => 25,
  138. 'auth' => false,
  139. 'auth_type' => '', // 'CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2' or ''
  140. 'username' => '',
  141. 'password' => '',
  142. 'secure' => '', // '', 'ssl' or 'tls'
  143. 'from' => 'root@localhost',
  144. ),
  145. # List of enabled FreshRSS extensions.
  146. 'extensions_enabled' => array(
  147. 'Tumblr-GDPR' => true,
  148. ),
  149. # Disable self-update,
  150. 'disable_update' => false,
  151. );