ttrss-config.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?php
  2. // *******************************************
  3. // *** Database configuration (important!) ***
  4. // *******************************************
  5. define('DB_TYPE', 'pgsql');
  6. define('DB_HOST', 'db');
  7. define('DB_USER', 'ttrss');
  8. define('DB_NAME', 'feeds');
  9. define('DB_PASS', 'ttpass');
  10. define('DB_PORT', '5432');
  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://feedati-fe/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. // WARNING: mcrypt is deprecated in php 7.1. This directive exists for backwards
  24. // compatibility with existing installs, new passwords are NOT going to be encrypted.
  25. // Use update.php --decrypt-feeds to decrypt existing passwords in the database while
  26. // mcrypt is still available.
  27. // Key used for encryption of passwords for password-protected feeds
  28. // in the database. A string of 24 random characters. If left blank, encryption
  29. // is not used. Requires mcrypt functions.
  30. // Warning: changing this key will make your stored feed passwords impossible
  31. // to decrypt.
  32. define('SINGLE_USER_MODE', false);
  33. // Operate in single user mode, disables all functionality related to
  34. // multiple users and authentication. Enabling this assumes you have
  35. // your tt-rss directory protected by other means (e.g. http auth).
  36. define('SIMPLE_UPDATE_MODE', false);
  37. // Enables fallback update mode where tt-rss tries to update feeds in
  38. // background while tt-rss is open in your browser.
  39. // If you don't have a lot of feeds and don't want to or can't run
  40. // background processes while not running tt-rss, this method is generally
  41. // viable to keep your feeds up to date.
  42. // Still, there are more robust (and recommended) updating methods
  43. // available, you can read about them here: http://tt-rss.org/wiki/UpdatingFeeds
  44. // *****************************
  45. // *** Files and directories ***
  46. // *****************************
  47. define('PHP_EXECUTABLE', '/usr/bin/php');
  48. // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss
  49. // programs and update daemon. Do not try to use CGI binary here, it won't work.
  50. // If you see HTTP headers being displayed while running tt-rss scripts,
  51. // then most probably you are using the CGI binary. If you are unsure what to
  52. // put in here, ask your hosting provider.
  53. define('LOCK_DIRECTORY', '/var/lock/tt-rss');
  54. // Directory for lockfiles, must be writable to the user you run
  55. // daemon process or cronjobs under.
  56. define('CACHE_DIR', '/var/cache/tt-rss');
  57. // Local cache directory for RSS feed content.
  58. define('ICONS_DIR', "/var/lib/tt-rss/feed-icons");
  59. define('ICONS_URL', "feed-icons");
  60. // Local and URL path to the directory, where feed favicons are stored.
  61. // Unless you really know what you're doing, please keep those relative
  62. // to tt-rss main directory.
  63. // **********************
  64. // *** Authentication ***
  65. // **********************
  66. // Please see PLUGINS below to configure various authentication modules.
  67. define('AUTH_AUTO_CREATE', true);
  68. // Allow authentication modules to auto-create users in tt-rss internal
  69. // database when authenticated successfully.
  70. define('AUTH_AUTO_LOGIN', true);
  71. // Automatically login user on remote or other kind of externally supplied
  72. // authentication, otherwise redirect to login form as normal.
  73. // If set to true, users won't be able to set application language
  74. // and settings profile.
  75. define ('LOGOUT_LOCATION', '/logout');
  76. // *********************
  77. // *** Feed settings ***
  78. // *********************
  79. define('FORCE_ARTICLE_PURGE', 0);
  80. // When this option is not 0, users ability to control feed purging
  81. // intervals is disabled and all articles (which are not starred)
  82. // older than this amount of days are purged.
  83. // ****************************
  84. // *** Sphinx search plugin ***
  85. // ****************************
  86. define('SPHINX_SERVER', 'localhost:9312');
  87. // Hostname:port combination for the Sphinx server.
  88. define('SPHINX_INDEX', 'ttrss, delta');
  89. // Index name in Sphinx configuration. You can specify multiple indexes
  90. // as a comma-separated string.
  91. // Example configuration files are available on tt-rss wiki.
  92. // ***********************************
  93. // *** Self-registrations by users ***
  94. // ***********************************
  95. define('ENABLE_REGISTRATION', false);
  96. // Allow users to register themselves. Please be aware that allowing
  97. // random people to access your tt-rss installation is a security risk
  98. // and potentially might lead to data loss or server exploit. Disabled
  99. // by default.
  100. define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
  101. // Email address to send new user notifications to.
  102. define('REG_MAX_USERS', 10);
  103. // Maximum amount of users which will be allowed to register on this
  104. // system. 0 - no limit.
  105. // **********************************
  106. // *** Cookies and login sessions ***
  107. // **********************************
  108. define('SESSION_COOKIE_LIFETIME', 86400);
  109. // Default lifetime of a session (e.g. login) cookie. In seconds,
  110. // 0 means cookie will be deleted when browser closes.
  111. // *********************************
  112. // *** Email and digest settings ***
  113. // *********************************
  114. define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
  115. define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
  116. // Name, address and subject for sending outgoing mail. This applies
  117. // to password reset notifications, digest emails and any other mail.
  118. define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
  119. // Subject line for email digests
  120. define('SMTP_SERVER', '');
  121. // Hostname:port combination to send outgoing mail (i.e. localhost:25).
  122. // Blank - use system MTA.
  123. define('SMTP_LOGIN', '');
  124. define('SMTP_PASSWORD', '');
  125. // These two options enable SMTP authentication when sending
  126. // outgoing mail. Only used with SMTP_SERVER.
  127. define('SMTP_SECURE', '');
  128. // Used to select a secure SMTP connection. Allowed values: ssl, tls,
  129. // or empty.
  130. // ***************************************
  131. // *** Other settings (less important) ***
  132. // ***************************************
  133. define('CHECK_FOR_UPDATES', true);
  134. // Check for updates automatically if running Git version
  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_proxy, note');
  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. // Disabling auth_internal in this list would automatically disable
  148. // reset password link on the login form.
  149. define('LOG_DESTINATION', 'sql');
  150. // Error log destination to use. Possible values: sql (uses internal logging
  151. // you can read in Preferences -> System), syslog - logs to system log.
  152. // Setting this to blank uses PHP logging (usually to http server
  153. // error.log).
  154. // Note that feed updating daemons don't use this logging facility
  155. // for normal output.
  156. define('CONFIG_VERSION', 26);
  157. // Expected config version. Please update this option in config.php
  158. // if necessary (after migrating all new options from this file).
  159. define('AUTHPROXY_WHITELIST_NAME', 'feedati-fe');
  160. //define('AUTHPROXY_WHITELIST_IP', '172.18.0.1');
  161. // vim:ft=php bkc=yes: