#Share#Yarr: An RSS reader with a beautiful UI

888u

Last update at :2024-02-25,Edit by888u

Today I was browsing the desert island of LALA boss and saw a good resource, which I just needed, so I turned it over. Original post: https://lala.im/7402.html

Yarr is an RSS reader developed in Go. The front-end interface is very clean and refreshing, and it fits perfectly with macos.

The project is still under active development, and the author should add more features in the future. Let me describe the deployment process below.

Since the author does not have precompiled binaries, we need to compile them ourselves. Install the required software:

apt -y install build-essential supervisor nginx python-certbot-nginx apache2-utils wget systemctl start supervisor nginx systemctl enable supervisor nginx

Install Go language:

wget https://golang.org/dl/go1.15.2.linux-amd64.tar.gz tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/golang.sh source /etc/profile.d/golang.sh

Pull the project files and compile:

cd /opt git clone https://github.com/nkanaev/yarr.git git clone https://github.com/nkanaev/gofeed.git mv gofeed yarr cd yarr make build_linux

After completion, you can see the compiled binary file in the following directory:

/opt/yarr/_output/linux

Create a new supervisor configuration file:

nano /etc/supervisor/conf.d/yarr.conf

Write the following configuration:

[program:yarr] priority=1 environment=XDG_CONFIG_HOME="$HOME/.config" directory=/opt/yarr/_output/linux command=/opt/yarr/_output/linux/yarr -addr 127.0.0.1:7070 autostart=true autorestart=true redirect_stderr=true stdout_logfile=/var/log/supervisor/yarr.log

Start yarn:

supervisorctl update

One drawback of yarr is that it does not have an authentication function, so in the supervisor above, I monitored it locally.

Next, use nginx reverse proxy and use nginx to add http authentication. First create a new nginx configuration file:

nano /etc/nginx/conf.d/yarr.conf

Write the following configuration:

server { listen 80; server_name yarr.imlala.best; location/{ auth_basic "Please Login"; auth_basic_user_file htpasswd; proxy_pass http://127.0.0.1:7070; } }

Use the following command to generate an htpasswd file (imlala is the username, please replace:)

htpasswd -c /etc/nginx/htpasswd imlala

Reload nginx:

systemctl reload nginx

If SSL is required, use the following command to automatically configure the SSL certificate for you:

certbot --nginx --agree-tos --no-eff-email --email example@qq.com

Recommended site search: free virtual host application, Zhenjiang high-defense server, Ministry of Industry and Information Technology website registration system, registered domain name instant solution server, domain name registration, US server, Google permanently free server, Taiwan server, how to view ip address,

#Share#Yarr: An RSS reader with a beautiful UI

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码