config.php-dist 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.
  25. // *****************************
  26. // *** Files and directories ***
  27. // *****************************
  28. define('PHP_EXECUTABLE', '/usr/bin/php');
  29. // Path to PHP executable, used for various command-line tt-rss programs
  30. define('LOCK_DIRECTORY', 'lock');
  31. // Directory for lockfiles, must be writable to the user you run
  32. // daemon process or cronjobs under.
  33. define('CACHE_DIR', 'cache');
  34. // Local cache directory for RSS feed content.
  35. define('TMP_DIRECTORY', '/tmp');
  36. // Directory for temporary files
  37. define('ICONS_DIR', "feed-icons");
  38. define('ICONS_URL', "feed-icons");
  39. // Local and URL path to the directory, where feed favicons are stored.
  40. // Unless you really know what you're doing, please keep those relative
  41. // to tt-rss main directory.
  42. // *********************
  43. // *** Feed settings ***
  44. // *********************
  45. define('DEFAULT_UPDATE_METHOD', 0);
  46. // Which feed parsing library to use as default:
  47. // 0 - Magpie
  48. // 1 - SimplePie
  49. define('FORCE_ARTICLE_PURGE', 0);
  50. // When this option is not 0, users ability to control feed purging
  51. // intervals is disabled and all articles (which are not starred)
  52. // older than this amount of days are purged.
  53. // *** PubSubHubbub settings ***
  54. define('PUBSUBHUBBUB_HUB', '');
  55. // URL to a PubSubHubbub-compatible hub server. If defined, "Published
  56. // articles" generated feed would automatically become PUSH-enabled.
  57. define('PUBSUBHUBBUB_ENABLED', false);
  58. // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
  59. // won't try to subscribe to PUSH feed updates.
  60. // *********************
  61. // *** Sphinx search ***
  62. // *********************
  63. define('SPHINX_ENABLED', false);
  64. // Enable fulltext search using Sphinx (http://www.sphinxsearch.com)
  65. // Please see http://tt-rss.org/wiki/SphinxSearch for more information.
  66. define('SPHINX_INDEX', 'ttrss');
  67. // Index name in Sphinx configuration. You can specify multiple indexes
  68. // as a comma-separated string.
  69. // **********************
  70. // *** Authentication ***
  71. // **********************
  72. define('ALLOW_REMOTE_USER_AUTH', false);
  73. // Set to 'true' if you trust your web server's REMOTE_USER
  74. // environment variable that the user is logged in. This option can be
  75. // used to integrate tt-rss with Apache's external authentication modules.
  76. define('AUTO_LOGIN', false);
  77. // Set this to true if you use ALLOW_REMOTE_USER_AUTH or client SSL
  78. // certificate authentication and you want to skip the login form.
  79. // If set to true, users won't be able to set application language
  80. // and settings profile.
  81. // Otherwise users will be redirected to login form with their login
  82. // information pre-filled.
  83. define('AUTO_CREATE_USER', false);
  84. // If users are authenticated by your web server, set this to true if
  85. // You want new users to be automaticaly created in tt-rss database
  86. // on first login
  87. // ***********************************
  88. // *** Self-registrations by users ***
  89. // ***********************************
  90. define('ENABLE_REGISTRATION', false);
  91. // Allow users to register themselves. Please be vary that allowing
  92. // random people to access your tt-rss installation is a security risk
  93. // and potentially might lead to data loss or server exploit. Disabled
  94. // by default.
  95. define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
  96. // Email address to send new user notifications to.
  97. define('REG_MAX_USERS', 10);
  98. // Maximum amount of users which will be allowed to register on this
  99. // system. 0 - no limit.
  100. // **********************************
  101. // *** Cookies and login sessions ***
  102. // **********************************
  103. define('SESSION_COOKIE_LIFETIME', 0);
  104. // Default lifetime of a session (e.g. login) cookie. In seconds,
  105. // 0 means cookie will be deleted when browser closes.
  106. define('SESSION_EXPIRE_TIME', 86400);
  107. // Hard expiration limit for sessions. Should be
  108. // greater or equal to SESSION_COOKIE_LIFETIME
  109. define('SESSION_CHECK_ADDRESS', 1);
  110. // Check client IP address when validating session:
  111. // 0 - disable checking
  112. // 1 - check first 3 octets of an address (recommended)
  113. // 2 - check first 2 octets of an address
  114. // 3 - check entire address
  115. // *********************************
  116. // *** Email and digest settings ***
  117. // *********************************
  118. define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
  119. define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
  120. // Name, address and subject for sending outgoing mail. This applies
  121. // to password reset notifications, digest emails and any other mail.
  122. define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
  123. // Subject line for email digests
  124. define('SMTP_HOST', '');
  125. // SMTP Host to send outgoing mail. Blank - use system MTA.
  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. // *** Twitter integration settings ***
  132. // ************************************
  133. define('CONSUMER_KEY', '');
  134. define('CONSUMER_SECRET', '');
  135. // Your OAuth instance authentication information for Twitter, visit
  136. // http://twitter.com/oauth_clients to register your instance.
  137. // ***************************************
  138. // *** Other settings (less important) ***
  139. // ***************************************
  140. define('CHECK_FOR_NEW_VERSION', true);
  141. // Check for new versions of tt-rss automatically.
  142. define('COUNTERS_MAX_AGE', 365);
  143. // Hard limit for unread counters calculation. Try tweaking this
  144. // parameter to speed up tt-rss when having a huge number of articles
  145. // in the database (better yet, enable purging!)
  146. define('ENABLE_GZIP_OUTPUT', false);
  147. // Selectively gzip output to improve wire performance. This requires
  148. // PHP Zlib extension on the server.
  149. define('FEEDBACK_URL', '');
  150. // Displays an URL for users to provide feedback or comments regarding
  151. // this instance of tt-rss. Can lead to a forum, contact email, etc.
  152. define('ARTICLE_BUTTON_PLUGINS', 'note,tweet,share,mail');
  153. // Comma-separated list of additional article action button plugins
  154. // to enable, like tweet button, etc.
  155. // The following plugins are available: note, tweet, share, mail, readitlater
  156. define('CONFIG_VERSION', 25);
  157. // Expected config version. Please update this option in config.php
  158. // if necessary (after migrating all new options from this file).
  159. // vim:ft=php
  160. ?>