config.default.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. 'limits' => array(
  45. # Duration in seconds of the SimplePie cache,
  46. # during which a query to the RSS feed will return the local cached version.
  47. # Especially important for multi-user setups.
  48. 'cache_duration' => 800,
  49. # SimplePie HTTP request timeout in seconds.
  50. 'timeout' => 10,
  51. # If a user has not used FreshRSS for more than x seconds,
  52. # then its feeds are not refreshed anymore.
  53. 'max_inactivity' => PHP_INT_MAX,
  54. # Max number of feeds for a user.
  55. 'max_feeds' => 16384,
  56. # Max number of categories for a user.
  57. 'max_categories' => 16384,
  58. ),
  59. 'db' => array(
  60. # Type of database: `sqlite` or `mysql`.
  61. 'type' => 'sqlite',
  62. # MySQL host.
  63. 'host' => '',
  64. # MySQL user.
  65. 'user' => '',
  66. # MySQL password.
  67. 'password' => '',
  68. # MySQL database.
  69. 'base' => '',
  70. # MySQL table prefix.
  71. 'prefix' => '',
  72. ),
  73. # List of enabled FreshRSS extensions.
  74. 'extensions_enabled' => array(),
  75. );