spradio-liquidsoap/secrets.liq
2020-11-25 09:57:32 -05:00

50 lines
No EOL
1.6 KiB
Text

###########################
## THINGS TO CHANGE ##
###########################
# The radio station details.
radio_name = '<NAME_OF_RADIO_STATION>'
radio_description = '<STANDARD_ISSUE_TAGLINE>'
radio_genre = '<UNFAIRLY_CONSTRAINED_GENRE_TYPE>'
# Daemon settings
log_file = '<ABSOLUTE_PATH_TO_LOG_FILE>'
pid_file = '<ABSOLUTE_PATH_TO_PID_FILE>'
# 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}")
]