V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
topang
V2EX  ›  RSS

推一个 web 版的阅读器: rss-reader,无登录,跳源网页阅读

  •  
  •   topang · 12 天前 · 6858 次点击

    介绍

    介绍与源码请看原项目:rss-reader

    在原项目( 23 年 9 月版本)基础上(我修改的):

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

    预览

    light dark

    搭建

    准备:服务器安装好 docker

    开始: 一、 创建文件夹,如“rrx”

    mkdir rrx

    二、进入文件夹

    cd rrx/

    三、创建文件:config.json ("values"改成自己的 rss 地址,“listHeight”控制列表高度,源多可以试试 300 )

    {
        "values": [
            "https://linux.do/latest.rss",
            "https://www.v2ex.com/feed/vps.xml"
        ],
        "refresh": 6,
        "autoUpdatePush": 7,
        "listHeight": "600",
        "webTitle": "Hello",
        "webDes":"My station"
    }
    

    四、创建文件: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"
    
    

    五、启动!

    docker-compose up -d

    访问 8880 端口( ip:8880 )

    六、添加反代( 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;
        }
    }
    

    搭好:DEMO

    一些 RSS 资源

    rsshub公众号转 RSS:wewe-rss二开 rss-reader 推送版

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   877 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:12 · PVG 04:12 · LAX 13:12 · JFK 16:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.