RSS门!
为了省去天天为了忙于收集资讯和免受大数据的骚扰
RSS成为了我最好的选择
DIYGod太强啦!
搭建流程
emm 实际上没什么好说的
但是由于我全站Cloudflare 所以变得有点麻烦
这里记录下
附: Ubuntu上装Docker一定一定要根据官方的一步一步来啊
snap的不靠谱(让我寄了一次
RSSHub的搭建
如下是我的docker-compose.yml
version: '3'
services:
rsshub:
# two ways to enable puppeteer:
# * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
# * (consumes more disk space and memory) leave everything unchanged
image: diygod/rsshub
restart: always
ports:
- '127.0.0.1:1200:1200' #设定
environment:
ACCESS_KEY: 'xxx' #加key防寄
NODE_ENV: production
CACHE_TYPE: redis
REDIS_URL: 'redis://redis:6379/'
PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' # marked
#REVERSE_PROXY_URL: 'xxx'
#BiliBili RSS
BILIBILI_COOKIE_xxx: 'xxx'
#YouTube RSS
YOUTUBE_KEY: 'xxx'
YOUTUBE_CLIENT_ID: 'xxx'
YOUTUBE_CLIENT_SECRET: 'xxx'
YOUTUBE_REFRESH_TOKEN: 'xxx'
#PIXIV RSS
PIXIV_REFRESHTOKEN: 'xxx'
depends_on:
- redis
- browserless # marked
browserless: # marked
image: browserless/chrome # marked
restart: always # marked
ulimits: # marked
core: # marked
hard: 0 # marked
soft: 0 # marked
redis:
image: redis:alpine
restart: always
volumes:
- ./data:/data #设置volumes data在docker-compose文件目录下生成
nginx.conf
server {
listen 80; #listen end
server_name xxx; #server_name end
#index index.html index.htm index.php; #index end
#reverse_proxy
location / {
proxy_pass http://127.0.0.1:1200;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log xxx;
error_log xxx;
}
docker compose up -d #开启
docker compose stop #关闭
#升级
docker compose down
docker pull diygod/rsshub
Miniflux的搭建
docker-compose.yml
services:
miniflux:
image: miniflux/miniflux:latest
container_name: miniflux
restart: always
ports:
- "127.0.0.1:1000:8080"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://xxx:xxx@db/xxx?sslmode=disable
- RUN_MIGRATIONS=1
- CREATE_ADMIN=1
- ADMIN_USERNAME=xxx
- ADMIN_PASSWORD=xxx
- BASE_URL=xxx
- POLLING_FREQUENCY=60 #拉取周期 单位为分钟
- DEBUG=1
# Optional health check:
healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
db:
image: postgres:15
container_name: postgres
environment:
- POSTGRES_USER=xxx
- POSTGRES_PASSWORD=xxx
#如果改了这个DATABASE_URL 要改成postgres://POSTGRES_USER:POSTGRES_PASSWORD@db/POSTGRES_USER?sslmode=disable
volumes:
- ./data:/var/lib/postgresql/data #pg数据库volumes 生成在docker-compose目录下
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
nginx.conf
server {
listen 80; #listen end
server_name xxx; #server_name end
#index index.html index.htm index.php; #index end
#reverse_proxy
location / {
proxy_pass http://127.0.0.1:1000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log xxx;
error_log xxx;
}
docker compose up -d #开启
docker compose stop #关闭
#升级
docker compose down
docker pull miniflux/miniflux:latest
然后就是跟着rsshub的文档吧cookie和那些token生成一下 添加到miniflux上就行了 可以用rsshub-radar(浏览器插件)来获取
rsshub-radar设置一键订阅并且填入访问密钥并开启生产访问码就可以愉快的一键订阅了
RSS阅读器
Windows上我用fluent-reader
有miniflux api
支持
Android我用的是FeedMe
有fever api
支持
Android上用fluent-reader-lite
没有miniflux api
支持
fever api
支持的也不是很好,但是已经看到有pr了如果支持了miniflux api
我应该会换
开启上述api
miniflux api
fever api