IceCast: Instalasi Ubuntu 22.04: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Created page with "Sumber: https://www.atlantic.net/dedicated-server-hosting/how-to-install-icecast-audio-streaming-server-on-ubuntu/ sudo su apt -y install icecast2 ==Referensi== * https..." |
No edit summary |
||
| Line 4: | Line 4: | ||
sudo su | sudo su | ||
apt -y install icecast2 | apt -y install icecast2 | ||
Restart | |||
systemctl start icecast2 | |||
systemctl enable icecast2 | |||
Cek Port 8000 | |||
ss -tunelp | grep 8000 | |||
Nginx sebagai Reverse Proxy for Icecast | |||
Install | |||
sudo su | |||
apt -y install nginx | |||
Edit config | |||
vi /etc/nginx/sites-available/icecast.conf | |||
Pastikan | |||
server { | |||
listen 80; | |||
listen [::]:80; | |||
server_name icecast.example.com; | |||
access_log /var/log/nginx/access.log; | |||
error_log /var/log/nginx/error.log; | |||
location / { | |||
proxy_pass http://localhost:8000; | |||
} | |||
} | |||
save & buat link | |||
ln -s /etc/nginx/sites-available/icecast.conf /etc/nginx/sites-enabled/ | |||
Edit | |||
vi /etc/nginx/nginx.conf | |||
Tambahkan dalam http {: | |||
server_names_hash_bucket_size 64; | |||
save & restart | |||
systemctl restart nginx | |||
Revision as of 13:22, 14 December 2023
sudo su apt -y install icecast2
Restart
systemctl start icecast2 systemctl enable icecast2
Cek Port 8000
ss -tunelp | grep 8000
Nginx sebagai Reverse Proxy for Icecast
Install
sudo su apt -y install nginx
Edit config
vi /etc/nginx/sites-available/icecast.conf
Pastikan
server {
listen 80;
listen [::]:80;
server_name icecast.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
proxy_pass http://localhost:8000;
}
}
save & buat link
ln -s /etc/nginx/sites-available/icecast.conf /etc/nginx/sites-enabled/
Edit
vi /etc/nginx/nginx.conf
Tambahkan dalam http {:
server_names_hash_bucket_size 64;
save & restart
systemctl restart nginx