Fix TT-RSS config

It needs to be environment variables now, but there's a bug where it doesn't read docker ones for some reason
This commit is contained in:
Jake Howard 2021-02-27 21:29:24 +00:00
parent b3a72eb8f1
commit a2fe3ca37a
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 8 additions and 79 deletions

View file

@ -1,82 +1,11 @@
<?php <?php
// ******************************************* putenv('TTRSS_DB_USER=tt-rss');
// *** Database configuration (important!) *** putenv('TTRSS_DB_NAME=tt-rss');
// ******************************************* putenv('TTRSS_DB_PASS=tt-rss');
define('DB_TYPE', 'pgsql'); putenv('TTRSS_SELF_URL_PATH=https://tt-rss.jakehoward.tech/');
define('DB_HOST', 'db');
define('DB_USER', 'tt-rss');
define('DB_NAME', 'tt-rss');
define('DB_PASS', 'tt-rss');
define('DB_PORT', '5432');
define('MYSQL_CHARSET', 'UTF8');
// *********************************** putenv('TTRSS_ENABLE_REGISTRATION=false');
// *** Basic settings (important!) ***
// ***********************************
define('SELF_URL_PATH', 'https://tt-rss.jakehoward.tech/'); putenv('TTRSS_CHECK_FOR_UPDATES=false');
define('SINGLE_USER_MODE', false); putenv('TTRSS_ENABLE_GZIP_OUTPUT=true');
define('SIMPLE_UPDATE_MODE', false);
// *****************************
// *** Files and directories ***
// *****************************
define('PHP_EXECUTABLE', '/usr/bin/php');
define('LOCK_DIRECTORY', 'lock');
define('CACHE_DIR', 'cache');
define('ICONS_DIR', "feed-icons");
define('ICONS_URL', "feed-icons");
// **********************
// *** Authentication ***
// **********************
define('AUTH_AUTO_CREATE', true);
define('AUTH_AUTO_LOGIN', true);
// *********************
// *** Feed settings ***
// *********************
define('FORCE_ARTICLE_PURGE', 0);
// ****************************
// *** Sphinx search plugin ***
// ****************************
define('SPHINX_SERVER', 'localhost:9312');
define('SPHINX_INDEX', 'ttrss, delta');
// ***********************************
// *** Self-registrations by users ***
// ***********************************
define('ENABLE_REGISTRATION', false);
define('REG_NOTIFY_ADDRESS', 'user@your.domain.dom');
define('REG_MAX_USERS', 10);
// **********************************
// *** Cookies and login sessions ***
// **********************************
define('SESSION_COOKIE_LIFETIME', 864000);
// *********************************
// *** Email and digest settings ***
// *********************************
define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
define('SMTP_FROM_ADDRESS', 'noreply@your.domain.dom');
define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
// ************************
// *** General settings ***
// ************************
define('CHECK_FOR_UPDATES', false);
define('ENABLE_GZIP_OUTPUT', true);
define('PLUGINS', 'auth_internal, note');
define('LOG_DESTINATION', 'sql');
define('CONFIG_VERSION', 26);

View file

@ -8,7 +8,7 @@ services:
- PGID={{ docker_user.id }} - PGID={{ docker_user.id }}
- TZ={{ TZ }} - TZ={{ TZ }}
volumes: volumes:
- ./tt-rss/config.php:/config/config.php:ro - "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro"
- ./tt-rss/feed-icons:/config/feed-icons - ./tt-rss/feed-icons:/config/feed-icons
- ./plugins:/config/plugins.local - ./plugins:/config/plugins.local
restart: unless-stopped restart: unless-stopped