config.default.php 4.3 KB

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