Installazione
wget https://github.com/nkanaev/yarr/releases/download/v2.4/yarr-v2.4-linux64.zip
unzip -x yarr-v2.4-linux64.zip
mv yarr /usr/local/bin/yarrConfigurazione utente
Con username e password di accesso:
su -l max
mkdir ~/.config/yarr
echo 'max:matty' > ~/.config/yarr/auth.confServizio systemd
Creo il file /etc/systemd/system/yarr-service con il seguente contenuto:
[Unit]
Description=Yarr
[Service]
Environment=HOME=/home/max
ExecStart=/usr/bin/env yarr -addr 0.0.0.0:7070 -auth-file=/home/max/.config/yarr/auth.conf -db=/home/max/.config/yarr/feed.sql -log-file=/home/max/.config/yarr/access.log
Restart=on-failure
[Install]
WantedBy=multi-user.targetAbilito ed avvio il servizio:
systemctl daemon-reload
systemctl enable --now yarr.serviceConfigurazione webserver
Creo il file /etc/nginx/sites-available/yarr con il seguente contenuto:
server {
listen 80 ;
listen [::]:80 ;
server_name rss.max73.it ;
location / {
proxy_pass http://localhost:7070/;
}
}Attivo il webserver ed abilito la connessione protetta (ssl):
ln -s /etc/nginx/sites-available/yarr /etc/nginx/sites-enabled
systemctl reload nginx.service
certbot --nginx -d rss.max73.it