rss-reader个人改版搭建

介绍


原项目rss-reader

在原项目(旧版)基础上改动:

  • 自定义标题和描述
  • 列表高度
  • 一点样式

预览


light
dark

搭建


准备:小鸡安装好docker

开始

  1. 创建文件夹,如“rrx”
    mkdir rrx
  2. 进入文件夹
    cd rrx/
  3. 创建文件:config.json(“listHeight”控制列表高度,源多可以试试300)
{
    "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"
}
  1. 创建文件:docker-compose.yml
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"

  1. 启动!
    docker-compose up -d
    访问8880端口(ip:8880)
  2. 添加反代(Nginx配置文件添加在server{…}里面)
 location ^~ /{
    proxy_pass http://127.0.0.1:8880;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_http_version 1.1;
    # proxy_hide_header Upgrade;

    add_header X-Cache $upstream_cache_status;

    #Set Nginx Cache
    
    
    set $static_fileHXsgUAWW 0;
    if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
    {
    	set $static_fileHXsgUAWW 1;
    	expires 1m;
        }
    if ( $static_fileHXsgUAWW = 0 )
    {
    add_header Cache-Control no-cache;
    }
}

搭好:Hello Mjj

一些RSS资源

rsshub 、 公众号转RSS:wewe-rss

原创文章,作者:qqniu,如若转载,请注明出处:https://qqniu.com/816.html

(0)
qqniuqqniu
上一篇 2024-06-10
下一篇 2024-06-16

相关推荐

发表回复

登录后才能评论