smeserver-tt-rss/root/etc/e-smith/templates/usr/share/tt-rss/config.php/10database

24 lines
521 B
Plaintext
Raw Normal View History

{
my $db = ${'tt-rss'}{'DbName'} || 'rssdb';
my $user = ${'tt-rss'}{'DbUser'} || 'rssuser';
my $pass = ${'tt-rss'}{'DbPassword'} || 'secret';
my $port = $mysqld{'TCPPort'} || '3306';
$OUT .=<<"HERE";
putenv('TTRSS_DB_TYPE=mysql');
putenv('TTRSS_DB_HOST=localhost');
putenv('TTRSS_DB_PORT=$port');
putenv('TTRSS_DB_USER=$user');
putenv('TTRSS_DB_NAME=$db');
putenv('TTRSS_DB_PASS=$pass');
putenv('TTRSS_DB_HOST=localhost');
HERE
}
putenv('TTRSS_MYSQL_CHARSET=UTF8');
// Connection charset for MySQL.