ports/www/tt-rss/files/config.php.in
Thierry Thomas 7e3a028cf0 www/tt-rss: Update to g20210423 e8f78181f
This update adds a new plugin installer and removes the web based installer.

    - Update to g20210423 (e8f78181f).
      - New config.php syntax.
      - Removeal of web installer.
      - New web based plug installer.
    - web plugin installer requires git.
    - pkg-message changes due to web installer removal.
    - ttrssd update to handle database schema upgrades.
    - ttrssd use daemon and cleanup.
    - UPDATING for config.php changes.
    - pkg-plist cleanup.

PR:		255476
Reported by:	Derek Schrock (maintainer)
Differential Revision:	<https://reviews.freebsd.org/D30030>
2021-05-23 12:09:58 +02:00

31 lines
933 B
PHP

<?php
/*
This file can be used to customize global defaults if environment method is not available (i.e. no Docker).
Use the following syntax to override defaults (options are declared in classes/config.php, prefixed by TTRSS_):
putenv('TTRSS_DB_HOST=myserver');
putenv('TTRSS_SELF_URL_PATH=http://example.com/tt-rss');
Plugin-required constants also go here, using define():
define('LEGACY_CONSTANT', 'value');
etc.
See this page for more information: https://tt-rss.org/wiki/GlobalConfig
*/
# Required for FreeBSD ports php location
putenv('TTRSS_PHP_EXECUTABLE=%%LOCALBASE%%/bin/php');
# Required for plugin installer usage of git
putenv("PATH=%%LOCALBASE%%/bin/:" . getenv("PATH"));
#putenv('TTRSS_SINGLE_USER_MODE=true');
#putenv('TTRSS_SELF_URL_PATH=');
#putenv('TTRSS_DB_TYPE=');
#putenv('TTRSS_DB_HOST=');
#putenv('TTRSS_DB_USER=');
#putenv('TTRSS_DB_NAME=');
#putenv('TTRSS_DB_PASS=');