From febcf0306a1633e4bbb686f40a88d53c8d3de799 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 8 May 2021 23:55:15 +0800 Subject: [PATCH] update README --- README-zh_cn.md | 138 ++++++++++++++++++++++++++++++++++++------------ README.md | 131 +++++++++++++++++++++++++++++++-------------- 2 files changed, 195 insertions(+), 74 deletions(-) diff --git a/README-zh_cn.md b/README-zh_cn.md index 7a3d559..b298e90 100644 --- a/README-zh_cn.md +++ b/README-zh_cn.md @@ -6,13 +6,14 @@ ![license](https://img.shields.io/github/license/Colin-XKL/RSSmanX) ![release](https://img.shields.io/github/v/release/Colin-XKL/RSSmanX) ![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FColin-XKL%2FRSSmanX.svg?type=shield) -![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103) -**RSSman X 提供容器化 TTRSS 与 RSSHUB 等组件的一键部署** +[RSSman X](https://github.com/Colin-XKL/RSSmanX) 基于 docker-compsoe 提供容器化 TTRSS 与 RSSHUB 等组件的一键部署,整合实用组件为你带来最佳 RSS 体验 + +**Feature: 简单一键部署,常用组件支持,自动更新支持,服务健康自检支持,海外站点 RSS 解锁** ## 快速开始 -(若已安装 docker 和 docker-compose) +(若已安装 `docker` 和 `docker-compose`) ```bash mkdir RSSmanX && cd $_ && wget https://cdn.jsdelivr.net/gh/Colin-XKL/RSSmanX/docker-compose.yml && sudo docker-compose up -d @@ -20,37 +21,59 @@ mkdir RSSmanX && cd $_ && wget https://cdn.jsdelivr.net/gh/Colin-XKL/RSSmanX/doc # 说明 -本项目旨在为 RSS 的同好提供一个方便地搭建自己的 RSS 服务的捷径。毕竟不是所有 RSS 爱好者都懂代码 😂。如果你想快速地搭建自己的 RSS 服务,能够有 RSS 订阅管理、RSS 在线阅读界面,还有订阅国内的各大网站的 RSS 信息源又不想跟着网上漫天飞的教程瞎折腾的话,那么你可以使用本仓库的脚本快速完成安装部署。 +本项目旨在为 RSS 的同好提供一个方便地搭建自己的 RSS 服务的捷径。毕竟不是所有 RSS 爱好者都懂代码 😂。如果你想快速地搭建自己的 RSS 服务,能够有 RSS 订阅管理、RSS 在线阅读界面,进阶功能包括服务健康自检、海外站点 RSS 解锁等。希望订阅国内外的各大网站的 RSS 信息源又不想跟着网上漫天飞的教程瞎折腾的话,那么你可以使用本仓库的脚本快速完成安装部署。 + +### 不同版本中包含的组件说明 + +三个版本的`docker-compose`文件对应不同的需求,包含的组件和服务有差异。 + +| 组件/服务/功能名称 | 标准版 | Lite 版 | Ultimate 版 ✨ | +| ------------------ | ------ | ------- | -------------- | +| TTRSS | ✅ | ✅ | ✅ | +| RSSHub | ✅ | ✅ | ✅ | +| Huginn | | | ✅ | +| Mercury | ✅ | | ✅ | +| OpenCC | | | ✅ | +| Redis | ✅ | | ✅ | +| Browserless | | | ✅ | +| 数据持久化保存 | ✅ | ✅ | ✅ | +| 容器自动更新 | ✅ | | ✅ | +| 容器健康检查 | ✅ | | ✅ | +| 海外站点加速 | | | ✅ | +| 智能路由 | | | ✅ | +| | | | | -## 目前包括的功能模块 +不同组件的功能描述见文末。不同版本对应的配置文件如下: -| 名称 | 功能说明 | 默认启用 | -| ------------- | ------------------------------------------------------------------------------------------- | -------- | -| Tiny Tiny RSS | RSS 订阅管理与在线阅读工具 | True | -| RSShub | 生成国内大部分网站的 RSS 信息源,同时自部署可以访问到那些严格防爬的站点的源(知乎、微博等) | True | -| Huginn | 高级 IFTTT 工具,你可以用生成任何 RSS 源,但使用门槛略高 | False | -| Postgres | 数据库,用于存储 RSS 文章数据等。比 MySQL 更轻,性能更好 | True | -| OpenCC | 简繁体转换,如果你订阅了一些繁体的 RSS 源,可以用它来将文章转为简体 | False | -| Mercury | 用于获取 RSS 全文 | True | -| WatchTower | 用于自动更新 RSShub 等组件,可以更好地支持新添加的源以及更快的获得 bug 修复 | True | +**标准版:**`docker-compose.yml` +**Lite 版:**`docker-compose-lite.yml` + +**Ultimate 版:**`docker-compose-ultimate.yml`和`config.yaml` + +选择对应版本下载到本地后都 compose 文件需要重命名为标准的`docker-compose.yml`才可使用 # 安装说明 + ## 需求 -* 一台Linux系统的服务器 -> 本文以腾讯云Ubuntu 18.04系统的服务器为例,其他云服务商的没差,系统为CentOS的会有点差异 + +- 一台 Linux 系统的服务器 + + > 本文以腾讯云 Ubuntu 18.04 系统的服务器为例,其他云服务商的没差,系统为 CentOS 的会有点差异 ## 依赖项 -* docker -* docker-compose - -**安装Docker** + +- docker +- docker-compose + +**安装 Docker** + ```bash sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ @@ -60,30 +83,79 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io ``` **安装 docker-compose** + ```bash sudo apt install docker-compose ``` 完整文档参见 📕 -* https://docs.docker.com/engine/install/ -* https://docs.docker.com/compose/install/ +- https://docs.docker.com/engine/install/ +- https://docs.docker.com/compose/install/ ## 如何安装 -安装好了docker和docker-compose后可以执行文章开头的快速开始的指令。或者可以按照下面的步骤: + +安装好了 `docker` 和 `docker-compose` 后可以执行文章开头的快速开始的指令。或者可以按照下面的步骤手动操作: + 1. 确定安装好了 `docker` 和 `docker-compose` -2. 克隆本仓库 -3. cd 进入文件夹,编辑`docker-compose`文件,修改密码及ttrss的`SELF_URL`处的值 +2. 克隆本仓库/下载你所需要的版本的 compose 文件,注意修改文件名 +3. cd 进入文件夹,编辑`docker-compose`文件,修改密码及 ttrss 的`SELF_URL`处的值 4. 运行 `sudo docker-compose up -d` 5. 等待程序跑完 +6. 安装完成 ✅ + +#### 使用相关事宜: + +1. 访问你设置的`SELF_URL`即可看到 Tiny Tiny RSS 的登陆页面,使用默认账户`admin`,密码`password`登陆即可开始使用。 +2. 如开启海外站点解锁支持,第一次冷启动需要等待 3-5 分钟才能完全启动所有组件。 +3. 数据保存位置 ~/.dockerData/Database/ + +详细配置和使用事宜请参考对应应用的文档说明。 + +- TTRSS 相关文档 [https://ttrss.henry.wang/](https://ttrss.henry.wang/) +- RSSHub 相关文档 [https://docs.rsshub.app/](https://docs.rsshub.app/) + +## 功能模块介绍 + +**Tiny Tiny RSS** +RSS 订阅管理与在线阅读工具 + +**RSShub** +生成国内大部分网站的 RSS 信息源,同时自部署可以访问到那些严格防爬的站点的源(知乎、微博等) + +**Huginn** +高级 IFTTT 工具,你可以用生成任何 RSS 源,但使用门槛略高 + +**Postgres** +数据库,用于存储 RSS 文章数据等。比 MySQL 更轻,性能更好 + +**OpenCC** +简繁体转换,如果你订阅了一些繁体的 RSS 源,可以用它来将文章转为简体 + +**Mercury** +用于获取 RSS 全文 + +**Browserless** +用于获取常规方式无法获取的网站 RSS,为 RSSHub 的可选组件 + +**Redis** +提供缓存,提升性能,为 RSSHub 的可选组件 + +**WatchTower** +用于自动更新 RSShub 等组件,可以更好地支持新添加的源以及更快的获得 bug 修复 + +**Clash** +智能路由与正向代理工具,用于解锁海外站点及提供海外 RSS 源的加速 # Acknowledgement -* [Tiny tiny RSS](https://github.com/DIYgod/RSSHub) -* [OpenCC](https://github.com/BYVoid/OpenCC) -* [Mercury](https://github.com/postlight/mercury-parser) -* [Huginn](https://github.com/huginn/huginn#readme) -* [RSShub](https://github.com/DIYgod/RSSHub) -* [Awesome TTRSS](https://github.com/HenryQW/Awesome-TTRSS) + +- [Tiny tiny RSS](https://tt-rss.org/) +- [OpenCC](https://github.com/BYVoid/OpenCC) +- [Mercury](https://github.com/postlight/mercury-parser) +- [Huginn](https://github.com/huginn/huginn) +- [RSShub](https://github.com/DIYgod/RSSHub) +- [Awesome TTRSS](https://github.com/HenryQW/Awesome-TTRSS) # License -GPL-3.0 \ No newline at end of file + +GPL-3.0 diff --git a/README.md b/README.md index e28bcd7..256d655 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # RSSman X + ![logo](./.github/logo.png) ![author](https://img.shields.io/badge/author-Colin-blue) @@ -7,49 +8,47 @@ ![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FColin-XKL%2FRSSmanX.svg?type=shield) ![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103) - **RSSman X is a project that composed several useful services to help you build an excellent RSS experience.** [中文说明](https://github.com/Colin-XKL/RSSmanX/blob/master/README-zh_cn.md) | English + ## Quick start + ```bash mkdir RSSmanX && cd $_ && wget https://cdn.jsdelivr.net/gh/Colin-XKL/RSSmanX/docker-compose.yml && sudo docker-compose up -d ``` + # Description -Get drown in modern Internet life? You may need RSS to take you out of the information sea. RSS is an old tech developed in 1990s. But it is a good tool to help you away from the unnecessary information on the Internet. -Most of the website have already dispose RSS support because you can read their article without accessing to their website, so that they cannot get money by their advertisements. We should pay for those high-quality articles, but most of the time we just want to check for news and we do not want to waste time on those advertisement and click and redirecting. Save time, keep focus, use RSS. +Get drown in modern Internet life? You may need RSS to take you out of the information sea. RSS is an old tech developed in 1990s. But it is a good tool to help you away from the unnecessary information and distraction on the Internet. +Most of the websites have already dispose RSS support because you can read their article without accessing to their website, so that they cannot get money by their advertisements. We should pay for those high-quality articles, but most of the time we just want to check for news and we do not want to waste time on those advertisement, clicking and redirecting. Save time, keep focus, use RSS. This project contains several services that can help you build your own RSS workflow. -|Service|Description|Necessary |Recommend| -|---|---|---|---| -|Tiny tiny RSS | A self hosted RSS service, manage all your feeds in one place | Yes | Yes | -|Mercury | Get full-text RSS feeds| No | Yes | -|OpenCC | Convert Traditional Chinese to Simplified Chinese| No | - | -|RSSHub | Easily get RSS feed of hot websites | No | Yes | -|Huginn | Build your own RSS feed with great flexibility | No | - | -|Watchtower | Keep your programs up to date | No | Yes | - -**By default, only recommended services will be installed.** For users that need higher level DIY, you can install all of the services listed above.Just uncomment the lines in the yml file. + # Installation + ## Preparations -To deploy RSSman X, you need to have a server that can host services that relevant with RSS. A Linux cloud server is recommended. Server with other operating system is OK as long as it can run docker🐋. + +To deploy RSSman X, you need to have a server that can host services that relevant with RSS. A Linux cloud server is recommended. Server with other operating system is OK as long as it can run docker🐋. In this document, I will take a Tencent cloud server with Ubuntu 18.04 as an example. + ## Requirements -* docker -* docker-compose - -If you have no idea installing these, below is an example. *(for Ubuntu only)* + +- docker +- docker-compose + +If you have no idea installing these, below is an example. _(for Ubuntu only)_ **To install docker** + ```bash sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ @@ -59,16 +58,18 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io ``` **To install docker-compose** + ```bash sudo apt install docker-compose ``` For full installation document, please go to 📕 -* https://docs.docker.com/engine/install/ -* https://docs.docker.com/compose/install/ +- https://docs.docker.com/engine/install/ +- https://docs.docker.com/compose/install/ ## How to install + 1. install requirements like `docker` and `docker-compose` 2. clone this repository 3. cd into the folder @@ -78,50 +79,98 @@ For full installation document, please go to 📕 The first time you run the installation command may take you an unexpecting long time, because your server need to download some files. But don't worry, the command line output will tell you the progress. Normal installation should be finished in 15 minutes. Or you need to check your network and your server. # Usage -Once the installation is done, you can visit `http://YOUR_SERVER_IP:777` to visit Tiny Tiny RSS login page. Use the default user `admin` and default password `password` to log in. **REMEMBER TO CHANGE YOUR PASSWORD!** -And then you can add rss feeds that you interested. You can either read the article online using the tiny tiny rss reader or you can go to a ttrss client on other platforms. For example, you can use `FeedMe` app on android to read your article and use `tiny Reader` on iOS/macOS. +Once the installation is done, you can visit `http://YOUR_SERVER_IP:777` to visit Tiny Tiny RSS login page. Use the default user `admin` and default password `password` to log in. **REMEMBER TO CHANGE YOUR PASSWORD!** -Nowadays only few websites support RSS feed. For those websites that does not support RSS, you can go to https://doc.rsshub.app to find if there is a third-party rss service available. If the website your interested is supported by rsshub, you can subscribe the website by using rss feed by rsshub or use the self-hosted rsshub that you just created. Just replace the link from rsshub like from `https://rsshub.app/*` to `http://rsshub:1200/*` +And then you can add rss feeds that you interested. You can either read the article online using the tiny tiny rss reader or you can go to a ttrss client on other platforms. For example, you can use `FeedMe` app on android to read your article and use `tiny Reader` on iOS/macOS. +Nowadays only few websites support RSS feed. For those websites that does not support RSS, you can go to https://doc.rsshub.app to find if there is a third-party rss service available. If the website your interested is supported by rsshub, you can subscribe the website by using rss feed by rsshub or use the self-hosted rsshub that you just created. Just replace the link from rsshub like from `https://rsshub.app/*` to `http://rsshub/*` ## Trouble shooting + ### Common problems + **1. Cannot open default login page** -Check your firewall and make sure you have allowed the port 777. If you changed the default port in the yml file, please also allow the port in your firewall. - +Check your firewall and make sure you have allowed the port 777. If you changed the default port in the yml file, please also allow the port in your firewall. Besides, a wrong `SELF_URL` value may cause this error too. + ### Note + This project only does tiny work as I just composed several services that developed by others. And most of problems may not cause by this program. The program in this repository just aims to help you quickly install all these services. All the problems except for installation have no matter with this project. You should refer to the original repository. **For Tiny tiny RSS problems:** https://tt-rss.org/wiki.php -http://ttrss.henry.wang/ +http://ttrss.henry.wang/ **For RSShub problems:** https://docs.rsshub.app/en/faq.html **For Huginn problems:** https://github.com/huginn/huginn#readme - + +## More Infomation + +### Services and description + +| Service | Description | Necessary | Recommend | +| ------------- | ------------------------------------------------------------- | --------- | --------- | +| Tiny tiny RSS | A self hosted RSS service, manage all your feeds in one place | Yes | Yes | +| Mercury | Get full-text RSS feeds | No | Yes | +| OpenCC | Convert Traditional Chinese to Simplified Chinese | No | - | +| RSSHub | Easily get RSS feed of various websites | No | Yes | +| Huginn | Build your own RSS feed with great flexibility | No | - | +| Watchtower | Keep your programs up to date | No | Yes | + +### Differences among the standard, lite and ultimate version + +| Name | Standard | Lite | Ultimate ✨ | +| ---------------------- | -------- | ---- | ----------- | +| TTRSS | ✅ | ✅ | ✅ | +| RSSHub | ✅ | ✅ | ✅ | +| Huginn | | | ✅ | +| Mercury | ✅ | | ✅ | +| OpenCC | | | ✅ | +| Redis | ✅ | | ✅ | +| Browserless | | | ✅ | +| Data persist storage | ✅ | ✅ | ✅ | +| Container autoupdate | ✅ | | ✅ | +| Container health check | ✅ | | ✅ | +| Glabal proxy | | | ✅ | +| Smart routing | | | ✅ | +| | | | | + +Different version of compose file have different file names. + +**Standard version:** `docker-compose.yml` + +**Lite version:** `docker-compose-lite.yml` + +**ultimate version:** `docker-compose-ultimate.yml` and `config.yaml` + +Choose the version you need and download the file, remember rename compose file to `docker-compose.yml` before you use it. # Development + If you find bugs or have any good idea that can make this project better, feel free to open a Github issue or make a pull request. I'll reply you as soon as possible. # Acknowledgement -* [Tiny tiny RSS](https://github.com/DIYgod/RSSHub) -* [OpenCC](https://github.com/BYVoid/OpenCC) -* [Mercury](https://github.com/postlight/mercury-parser) -* [Huginn](https://github.com/huginn/huginn#readme) -* [RSShub](https://github.com/DIYgod/RSSHub) -* [Awesome TTRSS](https://github.com/HenryQW/Awesome-TTRSS) + +- [Tiny tiny RSS](https://tt-rss.org/) +- [OpenCC](https://github.com/BYVoid/OpenCC) +- [Mercury](https://github.com/postlight/mercury-parser) +- [Huginn](https://github.com/huginn/huginn) +- [RSShub](https://github.com/DIYgod/RSSHub) +- [Awesome TTRSS](https://github.com/HenryQW/Awesome-TTRSS) # License -GPL-3.0 + +GPL-3.0 # Changelogs -* 2020-07-07 v1.0 First release -* 2020-07-14 v1.1 Update quick start shell script -* 2020-10-05 v1.2 Fix wrong environment variable. -* 2020-11-08 v1.3 TTRSS now can update feeds with ports except 80/443, and out self-hosted rsshub works again. -* 2020-11-13 v1.4 Several updates includes security and performance enhancements. -* 2020-11-24 v1.5 Lock the docker image version of some services to avoid unexpected errors. + +- 2020-07-07 v1.0 First release +- 2020-07-14 v1.1 Update quick start shell script +- 2020-10-05 v1.2 Fix wrong environment variable. +- 2020-11-08 v1.3 TTRSS now can update feeds with ports except 80/443, and our self-hosted rsshub works again. +- 2020-11-13 v1.4 Several updates includes security and performance enhancements. +- 2020-11-24 v1.5 Lock the docker image version of some services to avoid unexpected errors. +- 2021-05-08 v2.0 Add container network isolation, health check, global proxy, smart routing etc.