2011-12-14 08:37:13 +00:00
|
|
|
--- config.php-dist 2011-12-13 19:22:16.820796058 +0400
|
|
|
|
+++ config.php-dist.pgsql 2011-12-14 12:10:11.203290174 +0400
|
|
|
|
@@ -3,12 +3,12 @@
|
|
|
|
// *** Database configuration (important!) ***
|
|
|
|
// *******************************************
|
|
|
|
|
2011-11-10 20:02:53 +00:00
|
|
|
- define('DB_TYPE', "pgsql"); // or mysql
|
|
|
|
- define('DB_HOST', "localhost");
|
|
|
|
- define('DB_USER', "fox");
|
|
|
|
- define('DB_NAME', "fox");
|
|
|
|
- define('DB_PASS', "XXXXXX");
|
2011-12-14 08:37:13 +00:00
|
|
|
- //define('DB_PORT', '5432'); // when neeeded, PG-only
|
2011-11-10 20:02:53 +00:00
|
|
|
+ include_once('/etc/tt-rss-pgsql/database.php');
|
|
|
|
+ define('DB_TYPE', $dbtype);
|
|
|
|
+ define('DB_HOST', $dbserver);
|
|
|
|
+ define('DB_USER', $dbuser);
|
|
|
|
+ define('DB_NAME', $dbname);
|
|
|
|
+ define('DB_PASS', $dbpass);
|
|
|
|
|
2011-12-14 08:37:13 +00:00
|
|
|
define('MYSQL_CHARSET', 'UTF8');
|
|
|
|
// Connection charset for MySQL. If you have a legacy database and/or experience
|
|
|
|
@@ -35,11 +35,11 @@
|
|
|
|
define('PHP_EXECUTABLE', '/usr/bin/php');
|
|
|
|
// Path to PHP executable, used for various command-line tt-rss programs
|
2011-11-10 20:02:53 +00:00
|
|
|
|
|
|
|
- define('LOCK_DIRECTORY', 'lock');
|
|
|
|
+ define('LOCK_DIRECTORY', '/var/lock/tt-rss');
|
|
|
|
// Directory for lockfiles, must be writable to the user you run
|
|
|
|
// daemon process or cronjobs under.
|
|
|
|
|
2011-12-14 08:37:13 +00:00
|
|
|
- define('CACHE_DIR', 'cache');
|
|
|
|
+ define('CACHE_DIR', '/var/cache/tt-rss');
|
|
|
|
// Local cache directory for RSS feed content.
|
2012-01-12 08:21:05 +00:00
|
|
|
|