====== ycast ======
source : https://blogmotion.fr/diy/vtuner-alternative-ycast-18186
===== install technitium dns =====
https://technitium.com/dns/
curl -sSL https://download.technitium.com/dns/install.sh | sudo bash
===== install nginx =====
apt install nginx-light
==== vhost ====
https://github.com/milaq/YCast/blob/master/examples/nginx-ycast.conf.example
server {
listen 80;
server_name *.vtuner.com;
access_log /var/log/nginx/ycast_access.log;
error_log /var/log/nginx/ycast_error.log;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8010;
}
}
===== install ycast =====
sudo apt install python3 python3-pip libtiff5 libopenjp2-7
sudo pip3 install ycast
git clone https://github.com/milaq/YCast.git /home/pi/ycast-yamaha
sudo useradd ycast
cd /home/pi/ycast-yamaha/examples
sudo cp ycast.service.example /etc/systemd/system/ycast.service
cp stations.yml.example ../stations.yml
====== test config =====
python3 -m ycast -d -l 127.0.0.1 -p 8010 -c /home/pi/ycast-yamaha/stations.yml
===== finish =====
systemctl enable --now ycast.service