From 2f6fe34c6b3b03744a396b0754b56ca5cdf5b410 Mon Sep 17 00:00:00 2001 From: Josh W Date: Mon, 10 Feb 2020 15:05:00 -0500 Subject: [PATCH] Adding secrets in to explain variables. --- .gitignore | 4 ++-- secrets.liq | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 secrets.liq diff --git a/.gitignore b/.gitignore index e143edf..3d3c0ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -# Liquidsoap file for storing API codes and such. -secrets.liq +# Keep log files out. +*.log diff --git a/secrets.liq b/secrets.liq new file mode 100644 index 0000000..cf793e1 --- /dev/null +++ b/secrets.liq @@ -0,0 +1,46 @@ +########################### +## THINGS TO CHANGE ## +########################### + +# The radio station details. +radio_name = '' +radio_description = '' +radio_genre = '' + +# This is the file that will play when something catastophic occurs. +# Make sure it's an absolute path! +fallback_audio = '' + +# The URL to the radio's webpage. +radio_url_main = 'https://' + +# The stream server (IP or FQDN) +stream_address = '' +stream_port = 8000 +stream_password = '' + +# The authorization token for the DJ account. +dj_token = '' + +########################### +## THINGS TO LEAVE ALONE ## +########################### + +# This is the annotate string that incorporates the fallback audio if +# we somehow have a problem communicating with the web server. +fallback_annotate = 'annotate:artist="#{radio_name}",title="Stream is down :(",game="We\'ll be up again soon!":#{fallback_audio}' + +# These are specific URL endpoints for the radio controls API. +url_next = '#{radio_url_main}/api/next/' +url_played = '#{radio_url_main}/api/played/' + +# Headers for the API calls +api_headers_next = [ + ("Content-Type", "application/json; charset=utf-8"), + ("Authorization", "Token #{dj_token}"), + ("Accept", "application/vnd.liquidsoap.annotate") +] +api_headers_played = [ + ("Content-Type", "application/json; charset=utf-8"), + ("Authorization", "Token #{dj_token}") +] \ No newline at end of file