Alibaba Cloud Deploys Tiny Tiny RSS Stepping Pit Notes

Alibaba Cloud Deploys Tiny Tiny RSS Stepping Pit Notes

foreword

    I have entered RSS. The previous configuration is that Alibaba Cloud deploys RSSHub, and cooperates with Inoreader to read articles. For details, see RSS Entry Guide and Alibaba Cloud Deployment RSSHub Notes . Around July 2021, Inoreader update errors began to appear. After investigation, I suspected that Inoreader was blocked by Alibaba Cloud, so I planned to give up Inoreader and search for related services in China. After looking around, the experience was not very good. Finally decided to self-build Tiny Tiny RSS.

TTRSS installation steps

docker installation

    At the beginning, I read Daddy’s article . He used the pagoda panel for visual installation. I also tried to install the pagoda panel, but it prompted me during the installation process that it might affect the original mysql data in my server. (The data of the personal website is stored in it), so I gave up. If the server does not have mysql installed, you can read his article.

Pagoda installation process
   First install docker, run the command,

curl https://get.docker.io/ | sh

   If you can't download it, use the daocloud source

curl -sSL https://get.daocloud.io/docker | sh

   If prompted: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?, update apt-get:

apt-get clean
apt-get update

install postgres

    After docker starts successfully, execute the command to install the postgres database:

docker run -d --name ttrssdb nornagon/postgres

Configure docker-compose.yml

    I use docker-compose to install TTRSS.

  1. Download docker-compose.yml , it is recommended to use the window, select a folder in linux, and drag it directly after downloading.
  2. Modify the port and see the port parameter 181:80, which indicates that port 80 (after the colon) of the application in the container is mapped to port 80 of the host (before the colon). If your host needs to run other services on port 80 (such as blog building), you should change the value before the colon to an unoccupied port. For example, I changed the number before the colon to 8888
  3. Modify SELF_URL_PATH, change http://localhost:181/ to the ip address or domain name of your host, such as http://11.22.33.44:8888/
  4. Add an open port (optional). At the end of 2020, the project will close the subscription to RSS feeds other than ports 443 and 80. For example, the open port of my RSSHub is 1200. If no open port is added, HTTP/1.1 will appear 404 Not Found error. So I added ALLOW_PORTS=1200 port to the environment variable. If you do not choose to add an open port, there are also two solutions to open port 80 in the docker container and Nginx reverse generation, please try it yourself.

configuration file
   Next, execute the following command in the docker-compose.yml directory. If an error is reported or the download cannot be performed, you need to update docker-compose or change the docker source.

docker-compose up -d

Update docker-compose (optional)

    At the beginning, I used the installation method that comes with the system, and the installed version is 1.8.0:

apt install docker-compose

    The updated version command is as follows:

# 卸载原有版本
pip uninstall docker-compose
# 运行此命令以下载 Docker Compose 的当前稳定版本
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# 如果无法下载,则使用daocloud源
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# 对二进制文件应用可执行权限
sudo chmod +x /usr/local/bin/docker-compose
# 查看版本
docker-compose --version

change docker source (optional)

    If the error is: read: connection reset by peer, it means that the problem is still the wall, the resources on GitHub cannot be downloaded, and the docker source needs to be changed. I chose Ali source. If you want other sources, you can read this article: Solve the problem that the docker pull is reset
   Find the container image service on the Alibaba Cloud website:
container image service
   After entering, select the image accelerator, follow the official document input, and you can replace the Ali source
mirror accelerator

# 仓库地址要使用自己的,这是通过内网访问,用别人的没效果
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://自己的仓库地址.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

in conclusion

   Execute the following command, if done appears, it means success

docker-compose up -d

    Default account: admin Password: password, please change it as soon as possible. Visit http://ip address:8888/ to use it.
exhibit

references

(2021) Self-built RSS reader Tiny Tiny RSS tutorial, docker installation Awesome TTRSS
Docker container to open 80 ports
Awesome TTRSS instruction document
Tiny Tiny RSS installation and pit filling road
use Tiny Tiny RSS self-built RSS service
TTRSS+RSSHub+Reeder to build Own RSS feed
Docker document
solves the problem that docker pull is reset

Guess you like

Origin blog.csdn.net/qq_37263248/article/details/118657909