basic config

This commit is contained in:
Mathieu Bruyen
2018-12-13 13:55:19 +01:00
parent 2c02fcce22
commit a709246496
3 changed files with 56 additions and 36 deletions

View File

@@ -3,12 +3,14 @@
// *** Database configuration (important!) ***
// *******************************************
define('DB_TYPE', "pgsql"); // or mysql
define('DB_HOST', "localhost");
define('DB_USER', "fox");
define('DB_NAME', "fox");
define('DB_PASS', "XXXXXX");
define('DB_PORT', ''); // usually 5432 for PostgreSQL, 3306 for MySQL
$postgres_uri = getenv('DATABASE_URL');
preg_match('^postgres://(.*):(.*)@(.*):(.*)/(.*)$', getenv('DATABASE_URL'), $matches)
define('DB_TYPE', "pgsql");
define('DB_HOST', $matches[3]);
define('DB_USER', $matches[1]);
define('DB_NAME', $matches[5]);
define('DB_PASS', $matches[2]);
define('DB_PORT', $matches[4]);
define('MYSQL_CHARSET', 'UTF8');
// Connection charset for MySQL. If you have a legacy database and/or experience
@@ -18,18 +20,18 @@
// *** Basic settings (important!) ***
// ***********************************
define('SELF_URL_PATH', 'http://example.org/tt-rss/');
define('SELF_URL_PATH', 'https://feeds.mais-h.eu');
// Full URL of your tt-rss installation. This should be set to the
// location of tt-rss directory, e.g. http://example.org/tt-rss/
// You need to set this option correctly otherwise several features
// including PUSH, bookmarklets and browser integration will not work properly.
define('SINGLE_USER_MODE', false);
define('SINGLE_USER_MODE', true);
// Operate in single user mode, disables all functionality related to
// multiple users and authentication. Enabling this assumes you have
// your tt-rss directory protected by other means (e.g. http auth).
define('SIMPLE_UPDATE_MODE', false);
define('SIMPLE_UPDATE_MODE', true);
// Enables fallback update mode where tt-rss tries to update feeds in
// background while tt-rss is open in your browser.
// If you don't have a lot of feeds and don't want to or can't run