Adding secrets in to explain variables.

This commit is contained in:
Josh W 2020-02-10 15:05:00 -05:00
parent 092894c7f9
commit 2f6fe34c6b
2 changed files with 48 additions and 2 deletions

4
.gitignore vendored
View file

@ -1,2 +1,2 @@
# Liquidsoap file for storing API codes and such. # Keep log files out.
secrets.liq *.log

46
secrets.liq Normal file
View file

@ -0,0 +1,46 @@
###########################
## THINGS TO CHANGE ##
###########################
# The radio station details.
radio_name = '<NAME_OF_RADIO_STATION>'
radio_description = '<STANDARD_ISSUE_TAGLINE>'
radio_genre = '<UNFAIRLY_CONSTRAINED_GENRE_TYPE>'
# This is the file that will play when something catastophic occurs.
# Make sure it's an absolute path!
fallback_audio = '<ABSOLUTE_PATH_TO_BACKUP_AUDIO_FILE>'
# The URL to the radio's webpage.
radio_url_main = 'https://<WEBPAGE_URL>'
# The stream server (IP or FQDN)
stream_address = '<STREAMING_SERVER_IP>'
stream_port = 8000
stream_password = '<STREAMING_SERVER_PASSWORD>'
# The authorization token for the DJ account.
dj_token = '<DJ_ACCOUNT_AUTHORIZATION_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}")
]