Tt-rss config

From wikinotes

Documentation

config.php src https://git.tt-rss.org/fox/tt-rss/src/branch/master/classes/config.php
global config docs https://tt-rss.org/wiki/GlobalConfig
global config apidocs https://srv.tt-rss.org/ttrss-docs/classes/Config.html

Locations

/usr/local/www/tt-rss/config.php config

Server config

Setting Settings

// bash
export TTRSS_DB_TYPE=mysql

// config.php
putenv('TTRSS_DB_TYPE=mysql');    // new
define('TTRSS_DB_TYPE', 'mysql');  // old (still used by some plugins)

Required Settings

<?php
    putenv('TTRSS_DB_TYPE=mysql');
    putenv('TTRSS_DB_HOST=..');
    putenv('TTRSS_DB_USER=..');
    putenv('TTRSS_DB_NAME=..');
    putenv('TTRSS_DB_PASS=..');
    putenv('TTRSS_DB_PORT=3306');
    putenv('TTRSS_SELF_URL_PATH=https://domain.com');
    // ...

Some Useful Settings

// Default lifetime of a session (e.g. login) cookie. In seconds,
// 0 means cookie will be deleted when browser closes.
define('TTRSS_SESSION_COOKIE_LIFETIME', 0);
putenv('TTRSS_SESSION_COOKIE_LIFETIME=0');

// Hard expiration limit for sessions. Should be
// greater or equal to SESSION_COOKIE_LIFETIME
// define('SESSION_EXPIRE_TIME', 86400);  // no longer present?

Web UI config

General

[Tab] Preferences:
  General:
    - Theme: night_blue.css
  Feeds:
    - [x] Enable API
  Articles:
    - [ ] Combined mode  # list titles only

[Tab] Feeds:
  # add feed-categories here

Feed Filters

Settings:
  Preferences:
    Tab: Filters