config.default.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. # Do not modify this file, which defines default values,
  3. # but edit `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 PubSubHubbub.
  12. # Examples:
  13. # https://example.net/FreshRSS/p/
  14. # https://freshrss.example.net/
  15. 'base_url' => '',
  16. # Natural language of the user interface, e.g. `en`, `fr`.
  17. 'language' => 'en',
  18. # Title of this FreshRSS instance in the Web user interface.
  19. 'title' => 'FreshRSS',
  20. # Name of the user that has administration rights.
  21. 'default_user' => '_',
  22. # Allow or not visitors without login to see the articles
  23. # of the default user.
  24. 'allow_anonymous' => false,
  25. # Allow or not anonymous users to start the refresh process.
  26. 'allow_anonymous_refresh' => false,
  27. # Login method:
  28. # `none` is without password and shows only the default user;
  29. # `form` is a conventional Web login form;
  30. # `persona` is the email-based login by Mozilla;
  31. # `http_auth` is an access controled by the HTTP Web server (e.g. `/FreshRSS/p/i/.htaccess` for Apache)
  32. # if you use `http_auth`, remember to protect only `/FreshRSS/p/i/`,
  33. # and in particular not protect `/FreshRSS/p/api/` if you would like to use the API (different login system).
  34. 'auth_type' => 'none',
  35. # Allow or not the use of the API, used for mobile apps.
  36. # End-point is http://example.net/FreshRSS/p/api/greader.php
  37. # You need to set the user's API password.
  38. 'api_enabled' => false,
  39. # Allow or not the use of an unsafe login,
  40. # by providing username and password in the login URL:
  41. # http://example.net/FreshRSS/p/i/?c=auth&a=login&u=alice&p=1234
  42. 'unsafe_autologin_enabled' => false,
  43. # Enable or not the use of syslog to log the activity of
  44. # SimplePie, which is retrieving RSS feeds via HTTP requests.
  45. 'simplepie_syslog_enabled' => true,
  46. 'limits' => array(
  47. # Duration in seconds of the SimplePie cache,
  48. # during which a query to the RSS feed will return the local cached version.
  49. # Especially important for multi-user setups.
  50. 'cache_duration' => 800,
  51. # SimplePie HTTP request timeout in seconds.
  52. 'timeout' => 10,
  53. # If a user has not used FreshRSS for more than x seconds,
  54. # then its feeds are not refreshed anymore.
  55. 'max_inactivity' => PHP_INT_MAX,
  56. # Max number of feeds for a user.
  57. 'max_feeds' => 16384,
  58. # Max number of categories for a user.
  59. 'max_categories' => 16384,
  60. # Max number of accounts that anonymous users can create
  61. # 0 for an unlimited number of accounts
  62. # 1 is to not allow user registrations (1 is corresponding to the admin account)
  63. 'max_registrations' => 1,
  64. ),
  65. # Options used by cURL when making HTTP requests, e.g. when the SimplePie library retrieves feeds.
  66. # http://php.net/manual/function.curl-setopt
  67. 'curl_options' => array(
  68. # Options to disable SSL/TLS certificate check (e.g. for self-signed HTTPS)
  69. //CURLOPT_SSL_VERIFYHOST => 0,
  70. //CURLOPT_SSL_VERIFYPEER => false,
  71. # Options to use a proxy for retrieving feeds.
  72. //CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  73. //CURLOPT_PROXY => '127.0.0.1',
  74. //CURLOPT_PROXYPORT => 8080,
  75. //CURLOPT_PROXYAUTH => CURLAUTH_BASIC,
  76. //CURLOPT_PROXYUSERPWD => 'user:password',
  77. ),
  78. 'db' => array(
  79. # Type of database: `sqlite` or `mysql`.
  80. 'type' => 'sqlite',
  81. # MySQL host.
  82. 'host' => 'localhost',
  83. # MySQL user.
  84. 'user' => '',
  85. # MySQL password.
  86. 'password' => '',
  87. # MySQL database.
  88. 'base' => '',
  89. # MySQL table prefix.
  90. 'prefix' => 'freshrss_',
  91. 'pdo_options' => array(
  92. //PDO::MYSQL_ATTR_SSL_KEY => '/path/to/client-key.pem',
  93. //PDO::MYSQL_ATTR_SSL_CERT => '/path/to/client-cert.pem',
  94. //PDO::MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.pem',
  95. ),
  96. ),
  97. # List of enabled FreshRSS extensions.
  98. 'extensions_enabled' => array(),
  99. );