config.default.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. # Enable or not support of PubSubHubbub.
  47. # /!\ It should NOT be enabled if base_url is not reachable by an external server.
  48. 'pubsubhubbub_enabled' => false,
  49. # Allow or not Web robots (e.g. search engines) in HTML headers.
  50. 'allow_robots' => false,
  51. 'limits' => array(
  52. # Duration in seconds of the SimplePie cache,
  53. # during which a query to the RSS feed will return the local cached version.
  54. # Especially important for multi-user setups.
  55. 'cache_duration' => 800,
  56. # SimplePie HTTP request timeout in seconds.
  57. 'timeout' => 10,
  58. # If a user has not used FreshRSS for more than x seconds,
  59. # then its feeds are not refreshed anymore.
  60. 'max_inactivity' => PHP_INT_MAX,
  61. # Max number of feeds for a user.
  62. 'max_feeds' => 16384,
  63. # Max number of categories for a user.
  64. 'max_categories' => 16384,
  65. # Max number of accounts that anonymous users can create
  66. # 0 for an unlimited number of accounts
  67. # 1 is to not allow user registrations (1 is corresponding to the admin account)
  68. 'max_registrations' => 1,
  69. ),
  70. # Options used by cURL when making HTTP requests, e.g. when the SimplePie library retrieves feeds.
  71. # http://php.net/manual/function.curl-setopt
  72. 'curl_options' => array(
  73. # Options to disable SSL/TLS certificate check (e.g. for self-signed HTTPS)
  74. //CURLOPT_SSL_VERIFYHOST => 0,
  75. //CURLOPT_SSL_VERIFYPEER => false,
  76. # Options to use a proxy for retrieving feeds.
  77. //CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  78. //CURLOPT_PROXY => '127.0.0.1',
  79. //CURLOPT_PROXYPORT => 8080,
  80. //CURLOPT_PROXYAUTH => CURLAUTH_BASIC,
  81. //CURLOPT_PROXYUSERPWD => 'user:password',
  82. ),
  83. 'db' => array(
  84. # Type of database: `sqlite` or `mysql`.
  85. 'type' => 'sqlite',
  86. # MySQL host.
  87. 'host' => 'localhost',
  88. # MySQL user.
  89. 'user' => '',
  90. # MySQL password.
  91. 'password' => '',
  92. # MySQL database.
  93. 'base' => '',
  94. # MySQL table prefix.
  95. 'prefix' => 'freshrss_',
  96. 'pdo_options' => array(
  97. //PDO::MYSQL_ATTR_SSL_KEY => '/path/to/client-key.pem',
  98. //PDO::MYSQL_ATTR_SSL_CERT => '/path/to/client-cert.pem',
  99. //PDO::MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.pem',
  100. ),
  101. ),
  102. # List of enabled FreshRSS extensions.
  103. 'extensions_enabled' => array(),
  104. );