Skip to content

Instantly share code, notes, and snippets.

@SamDecrock
Created June 10, 2019 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamDecrock/662be5e76eec96574bc66e4fd47436d5 to your computer and use it in GitHub Desktop.
Save SamDecrock/662be5e76eec96574bc66e4fd47436d5 to your computer and use it in GitHub Desktop.
Nginx configuration to forward a web radio
server {
listen 80;
server_name 104.248.213.228 koit.mydomain.com;
access_log /var/log/nginx/koitfm.access.log;
error_log /var/log/nginx/koitfm.error.log;
root /var/www/koitfm/;
location /KOITFM {
resolver 8.8.8.8; # may or may not be necessary.
proxy_pass http://13983.live.streamtheworld.com/KOITFM;
}
location /KOITFMlow {
resolver 8.8.8.8; # may or may not be necessary.
proxy_pass http://18543.live.streamtheworld.com/KOITFM;
}
location / {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment