Config Nginx Reverse Proxy Icecast Streaming
Config Nginx Reverse Proxy Icecast Streaming
server {
#listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 ipv6only=off;
server_name sasweblabs.com;# deny all; # DO NOT REMOVE OR CHANGE THIS LINE - Used when Engintron is disabled to block Nginx from becoming an open proxy
ssl_certificate /etc/letsencrypt/live/sasweblabs.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/sasweblabs.com/privkey.pem; # managed by Certbot
location / {
proxy_set_header Host $http_host;
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 60;
proxy_intercept_errors off;
proxy_http_version 1.1;
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://ip:8000$request_uri;
}
}