config.php-dist 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. // *******************************************
  3. // *** Database configuration (important!) ***
  4. // *******************************************
  5. define('DB_TYPE', "pgsql"); // or mysql
  6. define('DB_HOST', "localhost");
  7. define('DB_USER', "fox");
  8. define('DB_NAME', "fox");
  9. define('DB_PASS', "XXXXXX");
  10. define('DB_PORT', ''); // usually 5432 for PostgreSQL, 3306 for MySQL
  11. define('MYSQL_CHARSET', 'UTF8');
  12. // Connection charset for MySQL. If you have a legacy database and/or experience
  13. // garbage unicode characters with this option, try setting it to a blank string.
  14. // ***********************************
  15. // *** Basic settings (important!) ***
  16. // ***********************************
  17. define('SELF_URL_PATH', 'http://example.org/tt-rss/');
  18. // Full URL of your tt-rss installation. This should be set to the
  19. // location of tt-rss directory, e.g. http://example.org/tt-rss/
  20. // You need to set this option correctly otherwise several features
  21. // including PUSH, bookmarklets and browser integration will not work properly.
  22. define('SINGLE_USER_MODE', false);
  23. // Operate in single user mode, disables all functionality related to
  24. // multiple users and authentication. Enabling this assumes you have
  25. // your tt-rss directory protected by other means (e.g. http auth).
  26. define('SIMPLE_UPDATE_MODE', false);
  27. // Enables fallback update mode where tt-rss tries to update feeds in
  28. // background while tt-rss is open in your browser.
  29. // If you don't have a lot of feeds and don't want to or can't run
  30. // background processes while not running tt-rss, this method is generally
  31. // viable to keep your feeds up to date.
  32. // Still, there are more robust (and recommended) updating methods
  33. // available, you can read about them here: http://tt-rss.org/wiki/UpdatingFeeds
  34. // *****************************
  35. // *** Files and directories ***
  36. // *****************************
  37. define('PHP_EXECUTABLE', '/usr/bin/php');
  38. // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss
  39. // programs and update daemon. Do not try to use CGI binary here, it won't work.
  40. // If you see HTTP headers being displayed while running tt-rss scripts,
  41. // then most probably you are using the CGI binary. If you are unsure what to
  42. // put in here, ask your hosting provider.
  43. define('LOCK_DIRECTORY', 'lock');
  44. // Directory for lockfiles, must be writable to the user you run
  45. // daemon process or cronjobs under.
  46. define('CACHE_DIR', 'cache');
  47. // Local cache directory for RSS feed content.
  48. define('ICONS_DIR', "feed-icons");
  49. define('ICONS_URL', "feed-icons");
  50. // Local and URL path to the directory, where feed favicons are stored.
  51. // Unless you really know what you're doing, please keep those relative
  52. // to tt-rss main directory.
  53. // **********************
  54. // *** Authentication ***
  55. // **********************
  56. // Please see PLUGINS below to configure various authentication modules.
  57. define('AUTH_AUTO_CREATE', true);
  58. // Allow authentication modules to auto-create users in tt-rss internal
  59. // database when authenticated successfully.
  60. define('AUTH_AUTO_LOGIN', true);
  61. // Automatically login user on remote or other kind of externally supplied
  62. // authentication, otherwise redirect to login form as normal.
  63. // If set to true, users won't be able to set application language
  64. // and settings profile.
  65. // *********************
  66. // *** Feed settings ***
  67. // *********************
  68. define('FORCE_ARTICLE_PURGE', 0);
  69. // When this option is not 0, users ability to control feed purging
  70. // intervals is disabled and all articles (which are not starred)
  71. // older than this amount of days are purged.
  72. // ****************************
  73. // *** Sphinx search plugin ***
  74. // ****************************
  75. define('SPHINX_SERVER', 'localhost:9312');
  76. // Hostname:port combination for the Sphinx server.
  77. define('SPHINX_INDEX', 'ttrss, delta');
  78. // Index name in Sphinx configuration. You can specify multiple indexes
  79. // as a comma-separated string.
  80. // Example configuration files are available on tt-rss wiki.
  81. // ***********************************
  82. // *** Self-registrations by users ***
  83. // ***********************************
  84. define('ENABLE_REGISTRATION', false);
  85. // Allow users to register themselves. Please be aware that allowing
  86. // random people to access your tt-rss installation is a security risk
  87. // and potentially might lead to data loss or server exploit. Disabled
  88. // by default.
  89. define('REG_NOTIFY_ADDRESS', '[email protected]');
  90. // Email address to send new user notifications to.
  91. define('REG_MAX_USERS', 10);
  92. // Maximum amount of users which will be allowed to register on this
  93. // system. 0 - no limit.
  94. // **********************************
  95. // *** Cookies and login sessions ***
  96. // **********************************
  97. define('SESSION_COOKIE_LIFETIME', 86400);
  98. // Default lifetime of a session (e.g. login) cookie. In seconds,
  99. // 0 means cookie will be deleted when browser closes.
  100. // *********************************
  101. // *** Email and digest settings ***
  102. // *********************************
  103. // Tiny Tiny RSS sends mail via PHP mail() function, unless handled
  104. // by a plugin.
  105. // If you need SMTP support, take a look here:
  106. // https://git.tt-rss.org/fox/ttrss-mailer-smtp
  107. define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
  108. define('SMTP_FROM_ADDRESS', '[email protected]');
  109. // Name, address and subject for sending outgoing mail. This applies
  110. // to password reset notifications, digest emails and any other mail.
  111. define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
  112. // Subject line for email digests
  113. // ***************************************
  114. // *** Other settings (less important) ***
  115. // ***************************************
  116. define('CHECK_FOR_UPDATES', true);
  117. // Check for updates automatically if running Git version
  118. define('ENABLE_GZIP_OUTPUT', false);
  119. // Selectively gzip output to improve wire performance. This requires
  120. // PHP Zlib extension on the server.
  121. // Enabling this can break tt-rss in several httpd/php configurations,
  122. // if you experience weird errors and tt-rss failing to start, blank pages
  123. // after login, or content encoding errors, disable it.
  124. define('PLUGINS', 'auth_internal, note');
  125. // Comma-separated list of plugins to load automatically for all users.
  126. // System plugins have to be specified here. Please enable at least one
  127. // authentication plugin here (auth_*).
  128. // Users may enable other user plugins from Preferences/Plugins but may not
  129. // disable plugins specified in this list.
  130. // Disabling auth_internal in this list would automatically disable
  131. // reset password link on the login form.
  132. define('LOG_DESTINATION', 'sql');
  133. // Error log destination to use. Possible values: sql (uses internal logging
  134. // you can read in Preferences -> System), syslog - logs to system log.
  135. // Setting this to blank uses PHP logging (usually to http server
  136. // error.log).
  137. // Note that feed updating daemons don't use this logging facility
  138. // for normal output.
  139. define('CONFIG_VERSION', 26);
  140. // Expected config version. Please update this option in config.php
  141. // if necessary (after migrating all new options from this file).
  142. // vim:ft=php