rss-reader/README.md

94 lines
2.5 KiB
Markdown
Raw Normal View History

2022-07-08 02:05:50 +08:00
# 简述
2023-07-29 20:19:39 +08:00
RSS将信息聚合曾寻找过一些RSS客户端但觉得都太过于复杂会需要登陆、保存历史消息、
使用缓存加快响应速度但我想要看到的是打开页面看到关注网站的即时消息即可一般通过RSS订阅获取到的数据即是热点
2022-07-08 02:05:50 +08:00
看到有感兴趣的信息,可以跳转过去再详细的了解。
2023年7月28日进行了界面改版和升级
![](demo.png)
2022-07-08 02:14:05 +08:00
2022-07-08 02:05:50 +08:00
# 配置文件
配置文件位于config.jsonsources是RSS订阅链接示例如下
```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",
"https://www.cmooc.com/feed",
"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://cn.nytimes.com/rss.html",
"https://hostloc.com/forum.php?mod=rss&fid=45&auth=389ec3vtQanmEuRoghE%2FpZPWnYCPmvwWgSa7RsfjbQ%2BJpA%2F6y6eHAx%2FKqtmPOg"
2023-08-02 00:43:05 +08:00
],
"refresh": 6,
2023-08-02 01:27:23 +08:00
"autoUpdatePush": 1
2022-07-08 02:05:50 +08:00
}
```
2023-08-02 00:43:05 +08:00
名称 | 说明
-|-
values | rss订阅链接必填
2023-08-02 01:27:23 +08:00
refresh | rss订阅更新时间间隔单位分钟必填
autoUpdatePush | 自动刷新间隔默认为0不开启。效果为前端每autoUpdatePush分钟自动更新页面信息单位分钟非必填
2023-08-02 00:43:05 +08:00
2022-07-08 02:05:50 +08:00
# 使用方式
## Docker部署
2022-07-08 02:05:50 +08:00
环境要求Git、Docker、Docker-Compose
克隆项目
```bash
git clone https://github.com/srcrs/rss-reader
2022-07-08 02:05:50 +08:00
```
进入rss-reader文件夹运行项目
2022-07-08 02:05:50 +08:00
```bash
2023-07-29 22:57:27 +08:00
docker-compose up -d
2022-07-08 02:05:50 +08:00
```
2023-08-07 14:33:51 +08:00
国内服务器将Dockerfile中取消下面注释使用 go mod 镜像
```dockerfile
#RUN go env -w GO111MODULE=on && \
# go env -w GOPROXY=https://goproxy.cn,direct
```
部署成功后通过ip+端口号访问
2023-07-30 13:32:57 +08:00
# nginx反代
```conf
server {
listen 443 ssl;
server_name rss.lass.cc;
ssl_certificate fullchain.cer;
ssl_certificate_key lass.cc.key;
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;
}
}
server {
listen 80;
server_name rss.lass.cc;
rewrite ^(.*)$ https://$host$1 permanent;
}
```