Thursday, January 27, 2022

How To install Madsonic (Music Streaming Server) With Nginx On Rocky Linux 8

 in This Tutorial you will learn " How To install Madsonic (Music Streaming Server) With Nginx On Rocky Linux 8"

Madsonic is a web-based media streamer and jukebox server. |
Homepage -https://www.madsonic.org/pages/index.jsp
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

java -version
Download Link -https://www.madsonic.org/pages/download.jsp
https://www.madsonic.org/pages/download62.jsp

http://localhost:4040
admin/admin
_________________________________________________________________________________________
dnf install @nginx -y
cd /etc/nginx/ ; mkdir sites-available ; mkdir sites-enabled
nano /etc/nginx/sites-available/ghost
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name example.com www.example.com;
    root /var/www/ghost;
    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:4040;
    }
    client_max_body_size 50m;
}
nginx -t
ln -s /etc/nginx/sites-available/ghost /etc/nginx/sites-enabled/ghost
nano /etc/nginx/nginx.conf  [
include /etc/nginx/sites-enabled/*;
server_names_hash_bucket_size 64;
Comment out the entire server block:
nano /etc/hosts
192.168.1.60    www.example.com
systemctl restart nginx ; systemctl status nginx
www.example.com
__________________________________________________________________________________________

No comments:

Post a Comment