Introduction:

rss-reader, an RSS online browsing tool for real-time news from websites.

Preview:

Deployment Methods:

Step One: Update the source

Ubuntu/Debian:

apt update -y && apt upgrade -y    

Centos:

yum update -y && yum upgrade -y   

Step Two: Install and configure Docker

Install Docker:

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh ./get-docker.sh

Start Docker:

sudo systemctl start docker

Set Docker to start automatically at boot:

sudo systemctl enable docker

Step Three: Clone the repository

git clone https://github.com/srcrs/rss-reader
cd rss-reader

Step Four: Modify the configuration file

nano config.json

The original configuration file is:

{
    "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://hostloc.com/forum.php?mod=rss&fid=45&auth=389ec3vtQanmEuRoghE%2FpZPWnYCPmvwWgSa7RsfjbQ%2BJpA%2F6y6eHAx%2FKqtmPOg"
    ],
    "refresh": 6,
    "autoUpdatePush": 7
}

Which corresponds to this display interface:

You can modify it according to the RSS sources you want to view. The explanations are as follows:

NameDescription
valuesRSS subscription links (Required)
refreshRSS subscription update interval, in minutes (Required)
autoUpdatePushAutomatic refresh interval, default is 0, not enabled. The effect is that the frontend updates every X minutes (Optional)
nano docker-compose.yml

You can change the port on the left of ports:- "8080:8080" to modify the port exposed to the public network.

Step Five: Run the Docker container

docker compose up -d

Step Six: Reverse proxy to the domain

Here, a very simple method is used: Origin Rules provided by Cloudflare.

Configuration is as follows:

Modify the Field to Hostname, the Value to the complete domain you chose, and Rewrite to the port you just filled in on the left.

Remember to parse your subdomain to the server IP:
Use an A record, Name is the domain prefix, and Content is the server address.

Related Links:

GitHub Address: https://github.com/srcrs/rss-reader
Demo: https://rss.lass.cc

Tag:Configure, Online RSS Reader, Website Instant Messages Follow, rss-reader

Original link:http://enblog.fuyiran.link/Technology/45.html

Copyright: All posts on this blog, unless otherwise stated, are published using theCC BY-NC-SA 4.0 license agreement. Please indicate the source for reprinting Fu Speaking (enblog.fuyiran.link)

Add a new comment.