Web-based news feed aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Copyright (c) 2005 Andrew Dolgov (unless explicitly stated otherwise).
source deploy https://tt-rss.org/wiki/InstallationNotesHost
cp config.php-dist config.php 参考
putenv('TTRSS_DB_TYPE=mysql');
putenv('TTRSS_DB_PORT=3306');
putenv('TTRSS_DB_HOST=dbhost');
putenv('TTRSS_DB_NAME=dbname');
putenv('TTRSS_DB_USER=dbuser');
putenv('TTRSS_DB_PASS=dbpassword');
putenv('TTRSS_SELF_URL_PATH=https://example.com/tt-rss');
putenv('TTRSS_SIMPLE_UPDATE_MODE=true');
putenv('TTRSS_SESSION_COOKIE_LIFETIME='.(86400*30));
php ./update.php --update-schema
https://example.com/tt-rss admin | password
#配置 + 插件 参考
#自动更新文章 参考
vi /etc/systemd/system/ttrss_backend.service
[Unit]
Description=ttrss_backend
#mysql.service #postgresql.service
After=network.target mysql.service
[Service]
User=www-data
ExecStart=/var/www/html/ttrss/update_daemon2.php
[Install]
WantedBy=multi-user.target
- sudo systemctl enable ttrss_backend
- sudo systemctl start ttrss_backend
- sudo systemctl status ttrss_backend
- sudo journalctl -u ttrss_backend
sudo crontab -u www-data -e */30 * * * * /usr/bin/php /var/www/html/ttrss/update.php --feeds --quiet
config.php中增加配置 putenv('TTRSS_SIMPLE_UPDATE_MODE=true');
- Forum: http://tt-rss.org/forum
- web code: https://github.com/wangwindlong/ttrss
- official install guide: https://tt-rss.org/wiki/InstallationNotes
- origin android code: https://git.tt-rss.org/fox/tt-rss-android
- origin web code: https://git.tt-rss.org/fox/tt-rss/src/branch/master
- getHeadlines 获取文章列表
- getApiLevel {"op":"getApiLevel","sid":"t26hoh5egkdf7aj497g9e0js8o"}
- subscribeToFeed 订阅信息{"op":"subscribeToFeed","feed_url":"http://feed.smzdm.com","category_id":"11","sid":"t26hoh5egkdf7aj497g9e0js8o"}