AirSonic is a free and open source media streaming server.
NGINX is an open-source web server software that serves as a reverse proxy, HTTP load balancer, and email proxy for IMAP, POP3, and SMTP.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; java -version ; sestatus
dnf groupinstall "Development Tools" -y
useradd airsonic ; mkdir /var/airsonic /var/media_files
wget https://github.com/airsonic/airsonic/releases/download/v10.4.1/airsonic.war --output-document=/var/airsonic/airsonic.war
chown -R airsonic /var/airsonic ; chown -R airsonic /var/media_files
wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic.service -O /etc/systemd/system/airsonic.service
wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic-systemd-env -O /etc/sysconfig/airsonic
systemctl daemon-reload ; systemctl start airsonic ; systemctl enable airsonic ; systemctl status airsonic
dnf update ; dnf install nginx -y
nano /etc/nginx/conf.d/airsonic.conf
server {
listen 80;
server_name server.yourdomain.com;
access_log off;
error_log off;
location / {
proxy_pass http://127.0.0.1:8080;
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_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
nginx -t
nano /etc/hosts
192.168.1.60 server.yourdomain.com
systemctl restart nginx ; systemctl status nginx
firewall-cmd --zone=public --add-port=80/tcp --permanent ; firewall-cmd --zone=public --add-port=8080/tcp --permanent ; firewall-cmd --reload
http://server.yourdomain.com/
http://server.yourdomain.com/airsonic
admin/admin
__________________________________________________________________________________________
Thursday, January 27, 2022
How To Install AirSonic Media Server With Nginx on Rocky Linux 8.5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment