This repository has been archived on 2021-08-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ttrss/config.php
2021-08-04 18:33:54 +02:00

20 lines
623 B
PHP

<?php
preg_match('#^postgres://(.*):(.*)@(.*):(.*)/(.*)$#', getenv('DATABASE_URL'), $matches);
putenv('TTRSS_DB_TYPE=pgsql');
putenv('TTRSS_DB_HOST=' . $matches[3]);
putenv('TTRSS_DB_USER=' . $matches[1]);
putenv('TTRSS_DB_NAME=' . $matches[5]);
putenv('TTRSS_DB_PASS=' . $matches[2]);
putenv('TTRSS_DB_PORT=' . $matches[4]);
putenv('TTRSS_SELF_URL_PATH=' . getenv('SELF_URL_PATH'));
putenv('TTRSS_SINGLE_USER_MODE=false');
putenv('TTRSS_SIMPLE_UPDATE_MODE=false');
putenv('TTRSS_CHECK_FOR_UPDATES=false');
putenv('TTRSS_PLUGINS=auth_internal, note');
putenv('TTRSS_LOG_DESTINATION=stdout');