RSS-Reader
一个极简的RSS在线浏览工具,同时订阅多个rss地址并定时刷新获取最新内容。
本篇文章将介绍原版、带关键词推送改版、界面美化改版三种版本。
特性比较
原版
- 打包后镜像大小仅有约20MB,通过docker实现一键部署
- 支持自定义配置页面数据自动刷新
- 响应式布局,能够兼容不同的屏幕大小
- 良好的SEO,首次加载使用模版引擎快速展示页面内容
- 支持添加多个RSS订阅链接
- 简洁的页面布局,可以查看每个订阅链接最后更新时间
- 支持夜间模式
- config.json配置文件支持热更新
改版一
- 识别关键词后,推送通知到飞书和Telegram
改版二
- 自定义标题和描述
- 列表高度
- 一点样式
预览图片
部署教程
下面是原版rss-reader部署教程
version: "3"
services:
server:
image: srcrs/rss-reader:latest
container_name: rss-reader
restart: always
ports:
- "8080:8080"
volumes:
- "$PWD/config.json:/app/config.json"
docker-compose up -d
原版config.json文件
{
"values": [
"https://www.zhihu.com/rss",
"https://tech.meituan.com/feed/",
"http://www.ruanyifeng.com/blog/atom.xml",
"https://feeds.appinn.com/appinns/",
"https://v2ex.com/feed/tab/tech.xml",
"http://www.sciencenet.cn/xml/blog.aspx?di=30",
"https://www.douban.com/feed/review/book",
"https://www.douban.com/feed/review/movie",
"https://www.geekpark.net/rss",
"https://hostloc.com/forum.php?mod=rss&fid=45&auth=389ec3vtQanmEuRoghE%2FpZPWnYCPmvwWgSa7RsfjbQ%2BJpA%2F6y6eHAx%2FKqtmPOg"
],
"refresh": 6,
"autoUpdatePush": 7,
"nightStartTime": "06:30:00",
"nightEndTime": "19:30:00"
}
下面是rss-reader改版一部署教程
version: "3"
services:
server:
image: sohanyu/rss-reader:latest
container_name: rss-reader
restart: always
ports:
- "9898:8080"
volumes:
- "$PWD/config.json:/app/config.json"
docker-compose up -d
改版一config.json文件
{
"values": [
"https://linux.do/latest.rss",
"https://rss.nodeseek.com",
"https://hostloc.com/forum.php?mod=rss&fid=45&auth=389ec3vtQanmEuRoghE%2FpZPWnYCPmvwWgSa7RsfjbQ%2BJpA%2F6y6eHAx%2FKqtmPOg",
"https://v2ex.com/feed/tab/tech.xml",
"https://www.dalao.net/feed.htm"
],
"refresh": 5,
"autoUpdatePush": 7,
"nightStartTime": "06:30:00",
"nightEndTime": "19:30:00",
"keywords": ["cc","cloudcone","rn","racknerd","咸鱼","4837","jpp","hk2p"],
"notify" : {
"feishu": {
"api": ""
},
"telegram": {
"api": "https://api.telegram.org/bot${token}/sendMessage",
"chat_id":"",
"token": ""
}
},
"archives": "archives.txt"
}
下面是rss-reader改版二部署教程
version: "3"
services:
server:
image: topang/rss-reader-mix:latest
container_name: rss-reader-mix
restart: always
ports:
- "8880:8080"
volumes:
- "$PWD/config.json:/app/config.json"
docker-compose up -d
改版二config.json文件
{
"values": [
"https://rss.nodeseek.com/",
"https://linux.do/latest.rss",
"https://www.v2ex.com/feed/vps.xml",
"https://hostloc.com/forum.php?mod=rss&fid=45&auth=389ec3vtQanmEuRoghE%2FpZPWnYCPmvwWgSa7RsfjbQ%2BJpA%2F6y6eHAx%2FKqtmPOg"
],
"refresh": 6,
"autoUpdatePush": 7,
"listHeight": "600",
"webTitle": "Hello MJJ",
"webDes":"MJJ station"
}
相关说明
- 三个版本部署教程基本一致,将docker-compose.yml和对应的config.json文件置于同一路径下即可创建容器。
- 关于改版一,如需国内机部署,则需使用自定义tg通知API,即更改配置文件中的
https://api.telegram.org/bot${token}/sendMessage
为https://你的自建api/bot${token}/sendMessage
,自建教程见Telegram-bot-api-php-proxy项目 - 各版本默认对应的端口并不一样,注意修改
- 如需绑定域名则需进行反代,下面是nginx反代参考,如果是1panel,则抄下图作业即可。
server {
listen 443 ssl;
server_name rss.lass.cc;
ssl_certificate fullchain.cer;
ssl_certificate_key lass.cc.key;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location / {
proxy_pass http://localhost:8080;
}
location /ws {
proxy_pass http://localhost:8080/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_read_timeout 300s;
}
}
server {
listen 80;
server_name rss.lass.cc;
rewrite ^(.*)$ https://$host$1 permanent;
}
开源地址
原版
Loading...
带关键词推送版
Loading...
https://www.nodeseek.com/post-117397-1
界面美化版
https://www.nodeseek.com/post-117926-1