adding icecast reverse proxy

This commit is contained in:
2025-11-24 14:13:10 +00:00
parent 4434eeab15
commit 5589bf60ab
2 changed files with 13 additions and 1 deletions

View File

@@ -70,6 +70,18 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /radio {
return 301 /radio/;
}
location /radio/ {
proxy_pass http://$ICECAST_HOST:$ICECAST_PORT;
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;
}
}
}