config.default.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. # Do not modify this file, which is only a template.
  3. # See `config.php` 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. # Leave empty for most cases.
  11. # Ability to override the address of the FreshRSS instance,
  12. # used when building absolute URLs.
  13. 'base_url' => '',
  14. # Natural language of the user interface, e.g. `en`, `fr`.
  15. 'language' => 'en',
  16. # Title of this FreshRSS instance in the Web user interface.
  17. 'title' => 'FreshRSS',
  18. # Name of the user that has administration rights.
  19. 'default_user' => '_',
  20. # Allow or not visitors without login to see the articles
  21. # of the default user.
  22. 'allow_anonymous' => false,
  23. # Allow or not anonymous users to start the refresh process.
  24. 'allow_anonymous_refresh' => false,
  25. # Login method:
  26. # `none` is without password and shows only the default user;
  27. # `form` is a conventional Web login form;
  28. # `persona` is the email-based login by Mozilla;
  29. # `http_auth` is an access controled by the HTTP Web server (e.g. `/FreshRSS/p/i/.htaccess` for Apache)
  30. # if you use `http_auth`, remember to protect only `/FreshRSS/p/i/`,
  31. # and in particular not protect `/FreshRSS/p/api/` if you would like to use the API (different login system).
  32. 'auth_type' => 'none',
  33. # Allow or not the use of the API, used for mobile apps.
  34. # End-point is http://example.net/FreshRSS/p/api/greader.php
  35. # You need to set the user's API password.
  36. 'api_enabled' => false,
  37. # Allow or not the use of an unsafe login,
  38. # by providing username and password in the login URL:
  39. # http://example.net/FreshRSS/p/i/?c=auth&a=login&u=alice&p=1234
  40. 'unsafe_autologin_enabled' => false,
  41. # Enable or not the use of syslog to log the activity of
  42. # SimplePie, which is retrieving RSS feeds via HTTP requests.
  43. 'simplepie_syslog_enabled' => true,
  44. # In the case an article has changed (e.g. updated content):
  45. # Set to `true` to mark it unread, or `false` to leave it as-is.
  46. 'mark_updated_article_unread' => false,
  47. 'limits' => array(
  48. # Duration in seconds of the SimplePie cache,
  49. # during which a query to the RSS feed will return the local cached version.
  50. # Especially important for multi-user setups.
  51. 'cache_duration' => 800,
  52. # SimplePie HTTP request timeout in seconds.
  53. 'timeout' => 10,
  54. # If a user has not used FreshRSS for more than x seconds,
  55. # then its feeds are not refreshed anymore.
  56. 'max_inactivity' => PHP_INT_MAX,
  57. # Max number of feeds for a user.
  58. 'max_feeds' => 16384,
  59. # Max number of categories for a user.
  60. 'max_categories' => 16384,
  61. ),
  62. 'db' => array(
  63. # Type of database: `sqlite` or `mysql`.
  64. 'type' => 'sqlite',
  65. # MySQL host.
  66. 'host' => '',
  67. # MySQL user.
  68. 'user' => '',
  69. # MySQL password.
  70. 'password' => '',
  71. # MySQL database.
  72. 'base' => '',
  73. # MySQL table prefix.
  74. 'prefix' => '',
  75. ),
  76. # List of enabled FreshRSS extensions.
  77. 'extensions_enabled' => array(),
  78. );