前言
RSS 就是信息聚合服务,把你想看的内容通过 RSS 订阅,就可以起到筛选的作用。避免平台系统推荐引发的信息茧房效应。正好手里有可用的vps,顺便部署了一个,特此记录部署过程。
准备
域名一个
做好解析:n.webzhan.xyz
vps一台
推荐 香港节点 ,省去备案的过程。
系统初始化
系统初始化,并安装docker和docker-compose
参考文章: docker和docker-compose一键安装脚本
启动ttrss
创建目录
mkdir ttrss
编辑docker-compose.yaml
version: "3"
networks:
tnet:
driver: bridge
services:
database.postgres:
image: postgres:13-alpine
container_name: postgres
environment:
- POSTGRES_PASSWORD=postxxx@123 # please change the password
volumes:
- ~/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host
restart: always
networks:
- tnet
service.rss:
image: wangqiru/ttrss:latest
container_name: ttrss
ports:
- 181:80
environment:
- SELF_URL_PATH=https://n.webzhan.xyz/ # please change to your own domain
- DB_HOST=database.postgres
- DB_PORT=5432
- DB_NAME=ttrss
- DB_USER=postgres
- DB_PASS=postxxx@123 # please change the password
- ENABLE_PLUGINS=auth_internal,fever # auth_internal is required. Plugins enabled here will be enabled for all users as system plugins
- FEED_LOG_QUIET=true
stdin_open: true
tty: true
restart: always
command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure-db.php && exec s6-svscan /etc/s6/'
networks:
- tnet
service.mercury: # set Mercury Parser API endpoint to `service.mercury:3000` on TTRSS plugin setting page
image: wangqiru/mercury-parser-api:latest
container_name: mercury
expose:
- 3000
restart: always
networks:
- tnet
service.opencc: # set OpenCC API endpoint to `service.opencc:3000` on TTRSS plugin setting page
image: wangqiru/opencc-api-server:latest
container_name: opencc
environment:
- NODE_ENV=production
expose:
- 3000
restart: always
networks:
- tnet
启动项目
cd ttrss
docker-compose up -d
利用caddy代理
n.webzhan.xyz {
tls admin@webzhan.xyz
encode gzip
log {
output file /opt/logs/access.log
}
header / {
Strict-Transport-Security "max-age=31536000;includeSubdomains;preload"
}
## HTTP 代理配置, ttrss服务IP地址+端口
reverse_proxy 127.0.0.1:181
}
访问
https://n.webzhan.xyz/
设置备份
添加源
关注知乎问题
https://rss.lilydjwg.me/zhihu_question/40854395
知乎专栏
https://rss.lilydjwg.me/zhihuzhuanlan/c_1433942042578157568
公众号
FAQ
重置密码
UPDATE ttrss_users SET pwd_hash = 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8' WHERE id = 1;
你好,我想请教一个问题,ttrss配置邮件服务有点问题,可以出个教程吗?
加我QQ给你看看