From e81181f4d00a6c03af2fcc1450d809986e502c14 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 21 Mar 2021 12:06:40 +0100 Subject: [PATCH] modify tt-rss config template --- templates/config.php.j2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/config.php.j2 b/templates/config.php.j2 index fb9e6d9..1a44d84 100644 --- a/templates/config.php.j2 +++ b/templates/config.php.j2 @@ -2,19 +2,19 @@ // ******************************************* // *** Database configuration (important!) *** // ******************************************* - define('DB_TYPE', '{{ 'pgsql' if ttrss_db_type == 'postgres' else ttrss_db_type }}'); - define('DB_HOST', 'localhost'); - define('DB_USER', '{{ ttrss_db_user}}'); - define('DB_NAME', '{{ttrss_db_name}}'); - define('DB_PASS', '{{ ttrss_db_password }}'); - define('DB_PORT', '5432'); - define('MYSQL_CHARSET', 'UTF8'); + putenv('TTRSS_DB_TYPE={{ 'pgsql' if ttrss_db_type == 'postgres' else ttrss_db_type }}'); + putenv('TTRSS_DB_HOST=localhost'); + putenv('TTRSS_DB_USER={{ ttrss_db_user}}'); + putenv('TTRSS_DB_NAME={{ttrss_db_name}}'); + putenv('TTRSS_DB_PASS={{ ttrss_db_password }}'); + putenv('TTRSS_DB_PORT=5432'); + putenv('TTRSS_MYSQL_CHARSET=UTF8'); // Connection charset for MySQL. If you have a legacy database and/or experience // garbage unicode characters with this option, try setting it to a blank string. // *********************************** // *** Basic settings (important!) *** // *********************************** - define('SELF_URL_PATH', '{{ ttrss_url_path }}'); + putenv('TTRSS_SELF_URL_PATH={{ ttrss_url_path }}'); // 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 @@ -162,4 +162,4 @@ define('CONFIG_VERSION', 26); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). - // vim:ft=php \ No newline at end of file + // vim:ft=php