config.php-dist 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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('FEED_CRYPT_KEY', '');
  23. // Key used for encryption of passwords for password-protected feeds
  24. // in the database. A string of 24 random characters. If left blank, encryption
  25. // is not used. Requires mcrypt functions.
  26. // Warning: changing this key will make your stored feed passwords impossible
  27. // to decrypt.
  28. define('SINGLE_USER_MODE', false);
  29. // Operate in single user mode, disables all functionality related to
  30. // multiple users and authentication. Enabling this assumes you have
  31. // your tt-rss directory protected by other means (e.g. http auth).
  32. define('SIMPLE_UPDATE_MODE', false);
  33. // Enables fallback update mode where tt-rss tries to update feeds in
  34. // background while tt-rss is open in your browser.
  35. // If you don't have a lot of feeds and don't want to or can't run
  36. // background processes while not running tt-rss, this method is generally
  37. // viable to keep your feeds up to date.
  38. // Still, there are more robust (and recommended) updating methods
  39. // available, you can read about them here: http://tt-rss.org/wiki/UpdatingFeeds
  40. // *****************************
  41. // *** Files and directories ***
  42. // *****************************
  43. define('PHP_EXECUTABLE', '/usr/bin/php');
  44. // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss
  45. // programs and update daemon. Do not try to use CGI binary here, it won't work.
  46. // If you see HTTP headers being displayed while running tt-rss scripts,
  47. // then most probably you are using the CGI binary. If you are unsure what to
  48. // put in here, ask your hosting provider.
  49. define('LOCK_DIRECTORY', 'lock');
  50. // Directory for lockfiles, must be writable to the user you run
  51. // daemon process or cronjobs under.
  52. define('CACHE_DIR', 'cache');
  53. // Local cache directory for RSS feed content.
  54. define('ICONS_DIR', "feed-icons");
  55. define('ICONS_URL', "feed-icons");
  56. // Local and URL path to the directory, where feed favicons are stored.
  57. // Unless you really know what you're doing, please keep those relative
  58. // to tt-rss main directory.
  59. // **********************
  60. // *** Authentication ***
  61. // **********************
  62. // Please see PLUGINS below to configure various authentication modules.
  63. define('AUTH_AUTO_CREATE', true);
  64. // Allow authentication modules to auto-create users in tt-rss internal
  65. // database when authenticated successfully.
  66. define('AUTH_AUTO_LOGIN', true);
  67. // Automatically login user on remote or other kind of externally supplied
  68. // authentication, otherwise redirect to login form as normal.
  69. // If set to true, users won't be able to set application language
  70. // and settings profile.
  71. // *********************
  72. // *** Feed settings ***
  73. // *********************
  74. define('FORCE_ARTICLE_PURGE', 0);
  75. // When this option is not 0, users ability to control feed purging
  76. // intervals is disabled and all articles (which are not starred)
  77. // older than this amount of days are purged.
  78. // *** PubSubHubbub settings ***
  79. define('PUBSUBHUBBUB_HUB', '');
  80. // URL to a PubSubHubbub-compatible hub server. If defined, "Published
  81. // articles" generated feed would automatically become PUSH-enabled.
  82. define('PUBSUBHUBBUB_ENABLED', false);
  83. // Enable client PubSubHubbub support in tt-rss. When disabled, tt-rss
  84. // won't try to subscribe to PUSH feed updates.
  85. // ****************************
  86. // *** Sphinx search plugin ***
  87. // ****************************
  88. define('SPHINX_SERVER', 'localhost:9312');
  89. // Hostname:port combination for the Sphinx server.
  90. define('SPHINX_INDEX', 'ttrss, delta');
  91. // Index name in Sphinx configuration. You can specify multiple indexes
  92. // as a comma-separated string.
  93. // Example configuration files are available on tt-rss wiki.
  94. // ***********************************
  95. // *** Self-registrations by users ***
  96. // ***********************************
  97. define('ENABLE_REGISTRATION', false);
  98. // Allow users to register themselves. Please be aware that allowing
  99. // random people to access your tt-rss installation is a security risk
  100. // and potentially might lead to data loss or server exploit. Disabled
  101. // by default.
  102. define('REG_NOTIFY_ADDRESS', '[email protected]');
  103. // Email address to send new user notifications to.
  104. define('REG_MAX_USERS', 10);
  105. // Maximum amount of users which will be allowed to register on this
  106. // system. 0 - no limit.
  107. // **********************************
  108. // *** Cookies and login sessions ***
  109. // **********************************
  110. define('SESSION_COOKIE_LIFETIME', 86400);
  111. // Default lifetime of a session (e.g. login) cookie. In seconds,
  112. // 0 means cookie will be deleted when browser closes.
  113. define('SESSION_CHECK_ADDRESS', 1);
  114. // Check client IP address when validating session:
  115. // 0 - disable checking
  116. // 1 - check first 3 octets of an address (recommended)
  117. // 2 - check first 2 octets of an address
  118. // 3 - check entire address
  119. // *********************************
  120. // *** Email and digest settings ***
  121. // *********************************
  122. define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
  123. define('SMTP_FROM_ADDRESS', '[email protected]');
  124. // Name, address and subject for sending outgoing mail. This applies
  125. // to password reset notifications, digest emails and any other mail.
  126. define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
  127. // Subject line for email digests
  128. define('SMTP_SERVER', '');
  129. // Hostname:port combination to send outgoing mail (i.e. localhost:25).
  130. // Blank - use system MTA.
  131. define('SMTP_LOGIN', '');
  132. define('SMTP_PASSWORD', '');
  133. // These two options enable SMTP authentication when sending
  134. // outgoing mail. Only used with SMTP_SERVER.
  135. define('SMTP_SECURE', '');
  136. // Used to select a secure SMTP connection. Allowed values: ssl, tls,
  137. // or empty.
  138. // ***************************************
  139. // *** Other settings (less important) ***
  140. // ***************************************
  141. define('CHECK_FOR_UPDATES', true);
  142. // Check for updates automatically if running Git version
  143. define('DETECT_ARTICLE_LANGUAGE', false);
  144. // Detect article language when updating feeds, presently this is only
  145. // used for hyphenation. This may increase amount of CPU time used by
  146. // update processes, disable if necessary (i.e. you are being billed
  147. // for CPU time).
  148. define('ENABLE_GZIP_OUTPUT', false);
  149. // Selectively gzip output to improve wire performance. This requires
  150. // PHP Zlib extension on the server.
  151. // Enabling this can break tt-rss in several httpd/php configurations,
  152. // if you experience weird errors and tt-rss failing to start, blank pages
  153. // after login, or content encoding errors, disable it.
  154. define('PLUGINS', 'auth_internal, note');
  155. // Comma-separated list of plugins to load automatically for all users.
  156. // System plugins have to be specified here. Please enable at least one
  157. // authentication plugin here (auth_*).
  158. // Users may enable other user plugins from Preferences/Plugins but may not
  159. // disable plugins specified in this list.
  160. // Disabling auth_internal in this list would automatically disable
  161. // reset password link on the login form.
  162. define('LOG_DESTINATION', 'sql');
  163. // Log destination to use. Possible values: sql (uses internal logging
  164. // you can read in Preferences -> System), syslog - logs to system log.
  165. // Setting this to blank uses PHP logging (usually to http server
  166. // error.log).
  167. define('CONFIG_VERSION', 26);
  168. // Expected config version. Please update this option in config.php
  169. // if necessary (after migrating all new options from this file).
  170. // vim:ft=php