config.php-dist 7.1 KB

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