config.default.php 4.6 KB

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