config.php-dist 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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', '5432'); // when neeeded, PG-only
  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://yourserver/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://yourserver/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 executable, used for various command-line tt-rss programs
  39. define('LOCK_DIRECTORY', 'lock');
  40. // Directory for lockfiles, must be writable to the user you run
  41. // daemon process or cronjobs under.
  42. define('CACHE_DIR', 'cache');
  43. // Local cache directory for RSS feed content.
  44. define('ICONS_DIR', "feed-icons");
  45. define('ICONS_URL', "feed-icons");
  46. // Local and URL path to the directory, where feed favicons are stored.
  47. // Unless you really know what you're doing, please keep those relative
  48. // to tt-rss main directory.
  49. // **********************
  50. // *** Authentication ***
  51. // **********************
  52. // Please see PLUGINS below to configure various authentication modules.
  53. define('AUTH_AUTO_CREATE', true);
  54. // Allow authentication modules to auto-create users in tt-rss internal
  55. // database when authenticated successfully.
  56. define('AUTH_AUTO_LOGIN', true);
  57. // Automatically login user on remote or other kind of externally supplied
  58. // authentication, otherwise redirect to login form as normal.
  59. // If set to true, users won't be able to set application language
  60. // and settings profile.
  61. // *********************
  62. // *** Feed settings ***
  63. // *********************
  64. define('FORCE_ARTICLE_PURGE', 0);
  65. // When this option is not 0, users ability to control feed purging
  66. // intervals is disabled and all articles (which are not starred)
  67. // older than this amount of days are purged.
  68. // *** PubSubHubbub settings ***
  69. define('PUBSUBHUBBUB_HUB', '');
  70. // URL to a PubSubHubbub-compatible hub server. If defined, "Published
  71. // articles" generated feed would automatically become PUSH-enabled.
  72. define('PUBSUBHUBBUB_ENABLED', false);
  73. // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
  74. // won't try to subscribe to PUSH feed updates.
  75. // *********************
  76. // *** Sphinx search ***
  77. // *********************
  78. define('SPHINX_ENABLED', false);
  79. // Enable fulltext search using Sphinx (http://www.sphinxsearch.com)
  80. // Please see http://tt-rss.org/wiki/SphinxSearch for more information.
  81. define('SPHINX_INDEX', 'ttrss');
  82. // Index name in Sphinx configuration. You can specify multiple indexes
  83. // as a comma-separated string.
  84. // ***********************************
  85. // *** Self-registrations by users ***
  86. // ***********************************
  87. define('ENABLE_REGISTRATION', false);
  88. // Allow users to register themselves. Please be aware that allowing
  89. // random people to access your tt-rss installation is a security risk
  90. // and potentially might lead to data loss or server exploit. Disabled
  91. // by default.
  92. define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
  93. // Email address to send new user notifications to.
  94. define('REG_MAX_USERS', 10);
  95. // Maximum amount of users which will be allowed to register on this
  96. // system. 0 - no limit.
  97. // **********************************
  98. // *** Cookies and login sessions ***
  99. // **********************************
  100. define('SESSION_COOKIE_LIFETIME', 86400);
  101. // Default lifetime of a session (e.g. login) cookie. In seconds,
  102. // 0 means cookie will be deleted when browser closes.
  103. // Setting this to zero will affect several user preferences
  104. // like widescreen mode not saving and disable "remember me".
  105. // Note that if remember me is not checked, session cookie
  106. // will always expire with browser session.
  107. define('SESSION_CHECK_ADDRESS', 1);
  108. // Check client IP address when validating session:
  109. // 0 - disable checking
  110. // 1 - check first 3 octets of an address (recommended)
  111. // 2 - check first 2 octets of an address
  112. // 3 - check entire address
  113. // *********************************
  114. // *** Email and digest settings ***
  115. // *********************************
  116. define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
  117. define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
  118. // Name, address and subject for sending outgoing mail. This applies
  119. // to password reset notifications, digest emails and any other mail.
  120. define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
  121. // Subject line for email digests
  122. define('SMTP_HOST', '');
  123. // SMTP Host to send outgoing mail. Blank - use system MTA.
  124. define('SMTP_PORT','');
  125. // SMTP port to sent outgoing mail. Default is 25.
  126. define('SMTP_LOGIN', '');
  127. define('SMTP_PASSWORD', '');
  128. // These two options enable SMTP authentication when sending
  129. // outgoing mail. Only used with SMTP_HOST
  130. // ***************************************
  131. // *** Other settings (less important) ***
  132. // ***************************************
  133. define('CHECK_FOR_NEW_VERSION', true);
  134. // Check for new versions of tt-rss automatically.
  135. define('ENABLE_GZIP_OUTPUT', false);
  136. // Selectively gzip output to improve wire performance. This requires
  137. // PHP Zlib extension on the server.
  138. // Enabling this can break tt-rss in several httpd/php configurations,
  139. // if you experience weird errors and tt-rss failing to start, blank pages
  140. // after login, or content encoding errors, disable it.
  141. define('PLUGINS', 'auth_internal, note, updater');
  142. // Comma-separated list of plugins to load automatically for all users.
  143. // System plugins have to be specified here. Please enable at least one
  144. // authentication plugin here (auth_*).
  145. // Users may enable other user plugins from Preferences/Plugins but may not
  146. // disable plugins specified in this list.
  147. define('CONFIG_VERSION', 26);
  148. // Expected config version. Please update this option in config.php
  149. // if necessary (after migrating all new options from this file).
  150. // vim:ft=php
  151. ?>