1
0
Fork 0

Use environment variables for feeding in settings.

liquidsoap-2.2
Icedream 2022-03-09 09:42:59 +01:00
parent 11f3d19371
commit 4fe49d8921
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
3 changed files with 29 additions and 25 deletions

View File

@ -21,6 +21,11 @@ services:
restart: always restart: always
devices: devices:
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
environment:
- INTERNAL_ICECAST_USERNAME=${INTERNAL_ICECAST_USERNAME:-source}
- INTERNAL_ICECAST_PASSWORD=${INTERNAL_ICECAST_PASSWORD:-source}
- REKTNETWORK_USERNAME
- REKTNETWORK_PASSWORD
deploy: deploy:
resources: resources:
limits: limits:

View File

@ -1,11 +1,5 @@
#stream_name="The Escape Plan 003" stream_name=getenv(default="Spontaneously live in the mix", "STREAM_NAME")
#stream_name="Icedream's Secret Mix 08" internal_icecast_username=getenv(default="source", "INTERNAL_ICECAST_USERNAME")
#stream_name="TGIF mix" internal_icecast_password=getenv(default="source", "INTERNAL_ICECAST_PASSWORD")
#stream_name="Icedream pres. Imaginary Frequencies 057" rektfm_username=getenv("REKTNETWORK_USERNAME")
stream_name="Spontaneously live in the mix" rektfm_password=getenv("REKTNETWORK_PASSWORD")
#stream_name="Sunday Straight Shredding, I guess"
#stream_name="Icedream's New Year's celebration stream"
# codec = %ogg(%vorbis.abr(samplerate=44100, bitrate=500, min_bitrate=32, max_bitrate=512))
# codec = %mp3(bitrate=320)
# codec = %ogg(%opus(bitrate=192, complexity=10, max_bandwidth="full_band", application="audio", signal="music"))

View File

@ -36,7 +36,9 @@ internal_icecast=output.icecast(
fallible=true, fallible=true,
port=61120, port=61120,
host="127.0.0.1", host="127.0.0.1",
name=stream_name()) user=internal_icecast_username,
password=internal_icecast_password,
name=stream_name)
setup_harbor_stream_api(internal_icecast( setup_harbor_stream_api(internal_icecast(
id="out_a_int", id="out_a_int",
%ffmpeg(format="ogg", %audio.copy), %ffmpeg(format="ogg", %audio.copy),
@ -44,16 +46,19 @@ setup_harbor_stream_api(internal_icecast(
a_flac)) a_flac))
# REKT.fm # REKT.fm
if string.length(rektfm_username) > 0 and string.length(rektfm_password) > 0 then
setup_harbor_stream_api(output.icecast( setup_harbor_stream_api(output.icecast(
id="out_a_rekt", id="out_a_rekt",
#%ogg(%flac),
%ffmpeg(format="ogg", %audio.copy), %ffmpeg(format="ogg", %audio.copy),
fallible=true, fallible=true,
mount="rekt", mount="rekt",
port=60000, port=60001,
#host="stream.rekt.network", #host="stream.rekt.network",
host="stream.rekt.fm", host="stream.rekt.fm",
user="icedream", user=rektfm_username,
name=stream_name(), name=stream_name,
password="***REMOVED***", password=rektfm_password,
start=false, start=false,
a_flac)) a_flac))
end