app/radio: add standby

This commit is contained in:
q3k 2019-06-19 14:55:11 +02:00
parent 610bec40a2
commit f9281d844f
3 changed files with 10 additions and 1 deletions

View file

@ -5,4 +5,6 @@ RUN set -e -x ;\
USER icecast
COPY standby.ogg /usr/share/icecast/web/standby.ogg
ENTRYPOINT ["/usr/bin/icecast", "-c", "/usr/share/icecast/icecast.xml"]

View file

@ -54,6 +54,7 @@ local kube = import "../../../kube/kube.libsonnet";
genre: "Classical",
bitrate: 128,
hidden: false,
fallbackMount: null,
},
makeName(suffix):: cfg.prefix + suffix,
@ -93,6 +94,10 @@ local kube = import "../../../kube/kube.libsonnet";
["listen-socket",
["port", std.toString(cfg.icecast.listenPort)],
],
["fileserve", "1"],
["paths",
["webroot", "/usr/share/icecast/web"],
],
["logging",
["accesslog", "-"],
["errorlog", "-"],
@ -110,7 +115,9 @@ local kube = import "../../../kube/kube.libsonnet";
["genre", cfg.icecast.mounts[m].genre],
["bitrate", std.toString(cfg.icecast.mounts[m].bitrate)],
["hidden", if cfg.icecast.mounts[m].hidden then "1" else "0"],
]
] + (if cfg.icecast.mounts[m].fallbackMount != null then
[["fallback-mount", cfg.icecast.mounts[m].fallbackMount]] else []
)
for m in std.objectFields(cfg.icecast.mounts)
]),
},

BIN
app/radio/standby.ogg Executable file

Binary file not shown.