Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/usr/bin/liquidsoap
  2.  
  3. set("harbor.bind_addr","0.0.0.0")
  4. set('harbor.verbose', true)
  5. set('log.level', 5)
  6. set("log.file.path","/dev/null")
  7. set("log.stdout",true)
  8.  
  9. liquidSoapMetaName = getenv("LIQUIDSOAP_META_NAME")
  10. liquidSoapPort = getenv("LIQUIDSOAP_PORT")
  11. liquidSoapUser = getenv("LIQUIDSOAP_USER")
  12. liquidSoapPassword = getenv("LIQUIDSOAP_PASSWORD")
  13. icecastPort = getenv("ICECAST_PORT")
  14. icecastPassword = getenv("ICECAST_PASSWORD")
  15. icecastMount = getenv("ICECAST_MOUNT")
  16.  
  17. live = audio_to_stereo(mksafe(input.harbor(liquidSoapMetaName,
  18. port=int_of_string(liquidSoapPort),
  19. user=liquidSoapUser,
  20. password=liquidSoapPassword)))
  21.  
  22. log(icecastPort)
  23.  
  24. output.icecast(%vorbis,
  25. host = "icecast", port = int_of_string(icecastPort),
  26. password = icecastPassword, mount = icecastMount,
  27. live)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement