0%

TTRSS + RSSHUB

最快速的 TTRSS + RSSHUB 配置方式

TTRSS + RSSHUB

准备工作

git / vps / docker … 不再赘述

TTRSS

vim docker-compose.yml

新建docker-compose.yml文件,其中的localhost,需要修改成自己的ip,在修改了IP之后这个也需要修改掉。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "3"
services:
service.rss:
image: wangqiru/ttrss:latest
container_name: ttrss
ports:
- 181:80
environment:
- SELF_URL_PATH=http://localhost:181/ # please change to your own domain
- DB_PASS=ttrss # use the same password defined in `database.postgres`
volumes:
- feed-icons:/var/www/feed-icons/
networks:
- public_access
- service_only
- database_only
stdin_open: true
tty: true
restart: always

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
networks:
- service_only
restart: always

database.postgres:
image: postgres:13-alpine
container_name: postgres
environment:
- POSTGRES_PASSWORD=ttrss # feel free to change the password
volumes:
- ~/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host
networks:
- database_only
restart: always

networks:
public_access: # Provide the access for ttrss UI
service_only: # Provide the communication network between services only
database_only: # Provide the communication between ttrss and database only
internal: true
volumes:
feed-icons:

然后在相同文件夹下面先关掉docker-compose

1
docker-compose down

再次执行sudo docker-compose up -d来更新容器。

RssHub

根据Rsshub的新规则,(为了安全考虑)RssHub的端口必须为80,需要在docker-compose配置文件中进行配置1200端口映射到80端口。

RssHub的youtube,twitter等路由,如果想舒服的使用,需要直接分别向tw,tb官方申请api,过程有点麻烦,后续如果我使用的话,会详细得在这里附上使用教程。